Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001108, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.00108/0.00108, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.681/2.681, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003908, allocations: 8 kB / 0.8154 GB, free: 13.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8707/0.8711, allocations: 142.4 MB / 0.9544 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001037/0.8722, allocations: 405 kB / 0.9548 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002447/0.8746, allocations: 1.05 MB / 0.9559 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.749e-05/0.8748, allocations: 1.406 kB / 0.9559 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.979e-05/0.8748, allocations: 0 / 0.9559 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.875, allocations: 3.938 kB / 0.9559 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004717/0.8755, allocations: 41.92 kB / 0.9559 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.8757, allocations: 63.34 kB / 0.956 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.8759, allocations: 8.203 kB / 0.956 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.8761, allocations: 25.84 kB / 0.956 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.8762, allocations: 32.66 kB / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.868e-05/0.8762, allocations: 3.25 kB / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.8764, allocations: 13.77 kB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.579e-05/0.8764, allocations: 10.3 kB / 0.956 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.544e-05/0.8765, allocations: 42.75 kB / 0.9561 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.8767, allocations: 51.47 kB / 0.9561 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.8767, allocations: 5.188 kB / 0.9561 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.748e-06/0.8767, allocations: 0 / 0.9561 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.8768, allocations: 0 / 0.9561 GB, free: 6.43 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.001033/0.8778, allocations: 380.1 kB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 7.203e-05/0.8779, allocations: 8.938 kB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.878, allocations: 14.53 kB / 0.9565 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.8781, allocations: 161.5 kB / 0.9567 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/0.8782, allocations: 3.062 kB / 0.9567 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.8782, allocations: 9 kB / 0.9567 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.8786, allocations: 90.83 kB / 0.9568 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.8786, allocations: 1 kB / 0.9568 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.8787, allocations: 0 / 0.9568 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.8787, allocations: 5.938 kB / 0.9568 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003833/0.8791, allocations: 66.03 kB / 0.9568 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007001/0.8798, allocations: 319.3 kB / 0.9572 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.8801, allocations: 83.73 kB / 0.9572 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.8804, allocations: 49.86 kB / 0.9573 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.8804, allocations: 5.062 kB / 0.9573 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003618/0.8808, allocations: 92.48 kB / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 2.474e-06/0.8808, allocations: 0 / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000839/0.8817, allocations: 196.2 kB / 0.9576 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.8817, allocations: 54.22 kB / 0.9576 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.809e-05/0.8818, allocations: 108.6 kB / 0.9577 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.8819, allocations: 36.11 kB / 0.9578 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.8819, allocations: 89.7 kB / 0.9578 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.882, allocations: 28.69 kB / 0.9579 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-06/0.882, allocations: 4 kB / 0.9579 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.615e-05/0.8821, allocations: 317.3 kB / 0.9582 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.8823, allocations: 45.12 kB / 0.9582 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.8825, allocations: 63.45 kB / 0.9583 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.8828, allocations: 51.91 kB / 0.9583 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.8828, allocations: 3.938 kB / 0.9583 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005435/0.8833, allocations: 150.5 kB / 0.9585 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.8834, allocations: 7.812 kB / 0.9585 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.8834, allocations: 0 / 0.9585 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.8834, allocations: 9.406 kB / 0.9585 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.8837, allocations: 25.48 kB / 0.9585 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.8837, allocations: 1.844 kB / 0.9585 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.8838, allocations: 19.88 kB / 0.9585 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.8839, allocations: 3.188 kB / 0.9585 GB, free: 4.301 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.884, allocations: 120.5 kB / 0.9587 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.884, allocations: 6.625 kB / 0.9587 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005602/0.8846, allocations: 153.9 kB / 0.9588 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.8846, allocations: 5.734 kB / 0.9588 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.8846, allocations: 0 / 0.9588 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.8847, allocations: 0 / 0.9588 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007528/0.8854, allocations: 424.9 kB / 0.9592 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.8854, allocations: 0 / 0.9592 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.8856, allocations: 26.86 kB / 0.9592 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.952e-06/0.8856, allocations: 7.938 kB / 0.9592 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.8856, allocations: 5.375 kB / 0.9593 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.8856, allocations: 1.375 kB / 0.9593 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.8857, allocations: 3.984 kB / 0.9593 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.8862, allocations: 249.7 kB / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.739e-05/0.8862, allocations: 79.86 kB / 0.9596 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.8863, allocations: 9.328 kB / 0.9596 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.8865, allocations: 16.23 kB / 0.9596 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.8865, allocations: 6.734 kB / 0.9596 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.8866, allocations: 2.75 kB / 0.9596 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.096e-05/0.8866, allocations: 88.77 kB / 0.9597 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8866, allocations: 0 / 0.9597 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004815/0.8871, allocations: 19.12 kB / 0.9597 GB, free: 3.281 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000208/0.8874, allocations: 107.6 kB / 0.9598 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005221/0.8879, allocations: 109.9 kB / 0.9599 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.8879, allocations: 1.375 kB / 0.9599 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002359/0.8882, allocations: 55.66 kB / 0.96 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004792/0.8887, allocations: 14.64 kB / 0.96 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.8892, allocations: 166.4 kB / 0.9601 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.8894, allocations: 0.6875 MB / 0.9608 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.525e-05/0.8895, allocations: 9.5 kB / 0.9608 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.8895, allocations: 19.16 kB / 0.9608 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.8895, allocations: 0 / 0.9608 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of Templates: time 0.005844/0.8954, allocations: 0.8813 MB / 0.9617 GB, free: 1.793 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches