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.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.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.001007/0.001008, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00857/0.00857, allocations: 169.7 kB / 16.27 MB, free: 6.34 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.542/1.542, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.701/2.701, allocations: 390.9 MB / 0.6663 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004167/0.0004171, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8707/0.8711, allocations: 142.4 MB / 0.9551 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0009208/0.8721, allocations: 418.9 kB / 0.9554 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001415/0.8735, allocations: 1.053 MB / 0.9565 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.722e-05/0.8736, allocations: 0.875 kB / 0.9565 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.768e-05/0.8736, allocations: 0 / 0.9565 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.837e-05/0.8737, allocations: 9.047 kB / 0.9565 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.874, allocations: 37.19 kB / 0.9565 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.8741, allocations: 67.48 kB / 0.9566 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.339e-05/0.8742, allocations: 16.42 kB / 0.9566 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.422e-05/0.8743, allocations: 21.73 kB / 0.9566 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.698e-05/0.8744, allocations: 36.52 kB / 0.9567 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.8744, allocations: 3.438 kB / 0.9567 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.311e-05/0.8745, allocations: 14.11 kB / 0.9567 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.147e-05/0.8745, allocations: 14.22 kB / 0.9567 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.225e-05/0.8746, allocations: 52.34 kB / 0.9567 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.8747, allocations: 64.2 kB / 0.9568 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.8747, allocations: 0 / 0.9568 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.8747, allocations: 4 kB / 0.9568 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.8747, allocations: 1 kB / 0.9568 GB, free: 6.355 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.0005614/0.8753, allocations: 382.3 kB / 0.9572 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.8753, allocations: 10.38 kB / 0.9572 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.562e-05/0.8754, allocations: 3.281 kB / 0.9572 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.091e-05/0.8755, allocations: 171.5 kB / 0.9573 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.8755, allocations: 3.281 kB / 0.9573 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.8756, allocations: 13.52 kB / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.8758, allocations: 91.59 kB / 0.9574 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.8758, allocations: 192 / 0.9574 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.8758, allocations: 5.469 kB / 0.9575 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.8758, allocations: 5.203 kB / 0.9575 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.8761, allocations: 70 kB / 0.9575 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005218/0.8766, allocations: 311.5 kB / 0.9578 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.8768, allocations: 91.44 kB / 0.9579 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.877, allocations: 51.23 kB / 0.958 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.877, allocations: 1.812 kB / 0.958 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.8773, allocations: 92.28 kB / 0.958 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.8773, allocations: 0 / 0.958 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0005452/0.8778, allocations: 192 kB / 0.9582 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.8779, allocations: 61.98 kB / 0.9583 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.968e-05/0.878, allocations: 101.5 kB / 0.9584 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.878, allocations: 36.41 kB / 0.9584 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.98e-05/0.8781, allocations: 85.84 kB / 0.9585 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.8781, allocations: 35.53 kB / 0.9585 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.919e-05/0.8781, allocations: 19.66 kB / 0.9586 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.507e-05/0.8782, allocations: 324.2 kB / 0.9589 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.8783, allocations: 41.12 kB / 0.9589 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.8785, allocations: 69.12 kB / 0.959 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.8787, allocations: 115.8 kB / 0.9591 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.8787, allocations: 5.375 kB / 0.9591 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003326/0.8791, allocations: 150.4 kB / 0.9592 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.8791, allocations: 5.5 kB / 0.9592 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.8791, allocations: 1.375 kB / 0.9592 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.8791, allocations: 1.375 kB / 0.9592 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.8793, allocations: 25.92 kB / 0.9593 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.8793, allocations: 1.375 kB / 0.9593 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.082e-05/0.8794, allocations: 14.77 kB / 0.9593 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.8794, allocations: 8.125 kB / 0.9593 GB, free: 4.152 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 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.82e-05/0.8795, allocations: 123.8 kB / 0.9594 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.8795, allocations: 6.656 kB / 0.9594 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003604/0.8799, allocations: 162.8 kB / 0.9596 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.8799, allocations: 1.375 kB / 0.9596 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.8799, allocations: 256 / 0.9596 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.8799, allocations: 3.984 kB / 0.9596 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005187/0.8804, allocations: 425.6 kB / 0.96 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.8805, allocations: 0 / 0.96 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.455e-05/0.8805, allocations: 14.58 kB / 0.96 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.8806, allocations: 0.7188 kB / 0.96 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.8806, allocations: 5.094 kB / 0.96 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.8806, allocations: 1.062 kB / 0.96 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.8806, allocations: 0 / 0.96 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00036/0.8809, allocations: 255.1 kB / 0.9602 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/0.881, allocations: 82.38 kB / 0.9603 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.881, allocations: 2.625 kB / 0.9603 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.8811, allocations: 11.45 kB / 0.9603 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.8812, allocations: 11.08 kB / 0.9603 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.8812, allocations: 6.531 kB / 0.9603 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.925e-05/0.8812, allocations: 80.31 kB / 0.9604 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.052e-06/0.8812, allocations: 0 / 0.9604 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002674/0.8815, allocations: 31.38 kB / 0.9605 GB, free: 3.137 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 (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.0001535/0.8817, allocations: 111.9 kB / 0.9606 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003404/0.882, allocations: 103.4 kB / 0.9607 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.882, allocations: 4.125 kB / 0.9607 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.8822, allocations: 57 kB / 0.9607 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.8825, allocations: 12.14 kB / 0.9607 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003558/0.8828, allocations: 178.3 kB / 0.9609 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.8829, allocations: 0.6876 MB / 0.9616 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.726e-05/0.883, allocations: 5.938 kB / 0.9616 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.821e-05/0.883, allocations: 15.55 kB / 0.9616 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of SimCode: time 4.21e-07/0.883, allocations: 0 / 0.9616 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of Templates: time 0.003938/0.887, allocations: 0.9146 MB / 0.9625 GB, free: 1.633 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