Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.515/1.515, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.539/2.539, allocations: 390.2 MB / 0.6646 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 67.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9717/0.9732, allocations: 140.4 MB / 0.9496 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002073/0.9753, allocations: 0.6637 MB / 0.9502 GB, free: 8.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.9766, allocations: 1.06 MB / 0.9513 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.45e-05/0.9767, allocations: 1.375 kB / 0.9513 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.272e-05/0.9768, allocations: 3.938 kB / 0.9513 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.161e-05/0.9768, allocations: 7.922 kB / 0.9513 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003001/0.9771, allocations: 38.16 kB / 0.9513 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.402e-05/0.9772, allocations: 60.61 kB / 0.9514 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.9774, allocations: 9.656 kB / 0.9514 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.461e-05/0.9774, allocations: 19.89 kB / 0.9514 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.72e-05/0.9775, allocations: 29.69 kB / 0.9514 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.9775, allocations: 5.188 kB / 0.9514 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.88e-05/0.9776, allocations: 17.75 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.9776, allocations: 10 kB / 0.9515 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.9777, allocations: 22.05 kB / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.9778, allocations: 56.62 kB / 0.9515 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.9778, allocations: 5.281 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.022e-06/0.9778, allocations: 0 / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.176e-06/0.9778, allocations: 0 / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004744/0.9783, allocations: 370.7 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.58e-05/0.9783, allocations: 9.469 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.9784, allocations: 7.469 kB / 0.9519 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.5e-05/0.9785, allocations: 166.6 kB / 0.9521 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.9785, allocations: 5.781 kB / 0.9521 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.9785, allocations: 7.875 kB / 0.9521 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/0.9787, allocations: 72.58 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.368e-06/0.9787, allocations: 192 / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.9787, allocations: 5.406 kB / 0.9522 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.9787, allocations: 1.438 kB / 0.9522 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.9789, allocations: 42.86 kB / 0.9522 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003393/0.9792, allocations: 283.2 kB / 0.9525 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.9794, allocations: 62.42 kB / 0.9525 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.637e-05/0.9795, allocations: 31.8 kB / 0.9526 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.9795, allocations: 5.219 kB / 0.9526 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.9797, allocations: 77.41 kB / 0.9526 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.9798, allocations: 0 / 0.9526 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004447/0.9802, allocations: 129.3 kB / 0.9528 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.9803, allocations: 53.78 kB / 0.9528 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.9804, allocations: 108.6 kB / 0.9529 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.9804, allocations: 26.98 kB / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.9805, allocations: 89.62 kB / 0.953 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.9805, allocations: 18.23 kB / 0.953 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/0.9805, allocations: 25.11 kB / 0.9531 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.568e-05/0.9806, allocations: 320 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.9807, allocations: 27.34 kB / 0.9534 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.9808, allocations: 62.42 kB / 0.9535 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.9811, allocations: 94.22 kB / 0.9536 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.9811, allocations: 0.9688 kB / 0.9536 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002818/0.9814, allocations: 121.1 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.9814, allocations: 7.25 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.9814, allocations: 1 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.9814, allocations: 2.438 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.9815, allocations: 24.48 kB / 0.9537 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.9816, allocations: 5.281 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.814e-05/0.9816, allocations: 8.828 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.9816, allocations: 3.375 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 7.491e-05/0.9817, allocations: 119.5 kB / 0.9538 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.9817, allocations: 6 kB / 0.9538 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003015/0.9821, allocations: 110.7 kB / 0.9539 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.9821, allocations: 4.938 kB / 0.954 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.9821, allocations: 0 / 0.954 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.9821, allocations: 0 / 0.954 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.9825, allocations: 359.3 kB / 0.9543 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.9825, allocations: 1.844 kB / 0.9543 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.9826, allocations: 15.12 kB / 0.9543 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.9826, allocations: 3.938 kB / 0.9543 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.9826, allocations: 9.484 kB / 0.9543 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.9826, allocations: 0 / 0.9543 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.9826, allocations: 1.062 kB / 0.9543 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.9829, allocations: 196 kB / 0.9545 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.624e-05/0.9829, allocations: 86.06 kB / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.983, allocations: 1.094 kB / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.663e-05/0.9831, allocations: 12.48 kB / 0.9546 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.9831, allocations: 2.625 kB / 0.9546 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.9831, allocations: 6.625 kB / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.234e-05/0.9832, allocations: 88.08 kB / 0.9547 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.9832, allocations: 0 / 0.9547 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002415/0.9834, allocations: 15.75 kB / 0.9547 GB, free: 4.582 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001471/0.9836, allocations: 102.5 kB / 0.9548 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002863/0.9839, allocations: 81.7 kB / 0.9549 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9839, allocations: 0 / 0.9549 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.984, allocations: 32.41 kB / 0.9549 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.9843, allocations: 12.67 kB / 0.9549 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003042/0.9846, allocations: 142 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.9847, allocations: 0.6859 MB / 0.9557 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.144e-05/0.9848, allocations: 3.5 kB / 0.9557 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.9848, allocations: 10.78 kB / 0.9558 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.9848, allocations: 4.938 kB / 0.9558 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of Templates: time 0.003147/0.988, allocations: 0.8271 MB / 0.9566 GB, free: 3.16 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches