Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 193.5 kB / 16.14 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.594/1.594, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.978/2.978, allocations: 437 MB / 0.71 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002093, allocations: 59.91 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7666/0.7687, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002323/0.7711, allocations: 0.7419 MB / 1.017 GB, free: 2.074 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001626/0.7727, allocations: 1.05 MB / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.227e-05/0.7728, allocations: 0 / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.05e-05/0.7728, allocations: 0 / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.355e-05/0.7729, allocations: 3.938 kB / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.7732, allocations: 47.83 kB / 1.018 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.46e-05/0.7733, allocations: 35.92 kB / 1.018 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.7734, allocations: 8 kB / 1.018 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.522e-05/0.7734, allocations: 15.92 kB / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.687e-05/0.7735, allocations: 19.92 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.7735, allocations: 0 / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.846e-05/0.7736, allocations: 23.92 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.124e-05/0.7736, allocations: 7.969 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.7737, allocations: 19.88 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.7738, allocations: 55.84 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.7738, allocations: 0 / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.042e-06/0.7738, allocations: 0 / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.7738, allocations: 0 / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006489/0.7745, allocations: 358.5 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.7745, allocations: 12.03 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.256e-05/0.7746, allocations: 4.938 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.7748, allocations: 168.3 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.7748, allocations: 384 / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.7748, allocations: 8.375 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.775, allocations: 58.23 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.775, allocations: 192 / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.775, allocations: 7.922 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.775, allocations: 0 / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.7752, allocations: 35.91 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006627/0.7759, allocations: 277 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.7761, allocations: 50.48 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.456e-05/0.7762, allocations: 24.94 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.7762, allocations: 4 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/0.7764, allocations: 71.33 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.7764, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0004341/0.7769, allocations: 109.5 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.7769, allocations: 51.41 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.7771, allocations: 109.8 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.7771, allocations: 25.7 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/0.7772, allocations: 96.08 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.7772, allocations: 15.78 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.964e-05/0.7772, allocations: 25.66 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.7774, allocations: 314.8 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.7775, allocations: 27.91 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.7777, allocations: 51.66 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.7779, allocations: 75.28 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.7779, allocations: 4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002714/0.7782, allocations: 101.6 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.7782, allocations: 8 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.7782, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.7782, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.7784, allocations: 15.98 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.7784, allocations: 3.938 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.175e-05/0.7785, allocations: 16.02 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.7785, allocations: 4 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001102/0.7786, allocations: 118.6 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.016e-05/0.7786, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002822/0.7789, allocations: 89.61 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.7789, allocations: 4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7789, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.7789, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004748/0.7794, allocations: 346.4 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.7794, allocations: 0 / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.185e-05/0.7795, allocations: 11.98 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.7795, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.7795, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.7795, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.7795, allocations: 4 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003042/0.7798, allocations: 195.3 kB / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.632e-05/0.7799, allocations: 77.11 kB / 1.021 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.7799, allocations: 4.188 kB / 1.021 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.856e-05/0.78, allocations: 11.98 kB / 1.021 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.7801, allocations: 0 / 1.021 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.7801, allocations: 15.88 kB / 1.021 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.031e-05/0.7801, allocations: 87.27 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7801, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002465/0.7804, allocations: 12 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001753/0.7806, allocations: 104 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002584/0.7808, allocations: 55.89 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.7809, allocations: 4.25 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.781, allocations: 31.97 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.7812, allocations: 11.94 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003818/0.7816, allocations: 149 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.7821, allocations: 0.6848 MB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.317e-05/0.7821, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.181e-05/0.7821, allocations: 11.44 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.7821, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of Templates: time 0.003822/0.786, allocations: 0.6595 MB / 1.023 GB, free: 11.61 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches