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.001623/0.001623, allocations: 110 kB / 16.41 MB, free: 6.5 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.001872/0.001872, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.221/2.221, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001526, allocations: 67.89 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9673/0.9688, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001771/0.9707, allocations: 0.6796 MB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.9719, allocations: 1.068 MB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.655e-05/0.9719, allocations: 0.9062 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.598e-05/0.972, allocations: 3.938 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.821e-05/0.972, allocations: 10 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.9723, allocations: 52.67 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.9724, allocations: 68.28 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.9725, allocations: 15.28 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.399e-05/0.9726, allocations: 30.55 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.209e-05/0.9727, allocations: 28.83 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.9727, allocations: 6.812 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.224e-05/0.9728, allocations: 19.97 kB / 1.091 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.442e-05/0.9728, allocations: 22.75 kB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.023e-05/0.9729, allocations: 25.52 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.973, allocations: 73.66 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.973, allocations: 4 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.973, allocations: 0 / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.9731, allocations: 1.188 kB / 1.091 GB, free: 4.125 MB / 0.8575 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.0005653/0.9736, allocations: 379.5 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.9737, allocations: 10.09 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.174e-05/0.9737, allocations: 8.734 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.002e-05/0.9738, allocations: 169 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.9738, allocations: 8.281 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.9739, allocations: 10.02 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.9741, allocations: 85.14 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.9741, allocations: 1.062 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.9741, allocations: 5.578 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.9741, allocations: 0.8125 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.9743, allocations: 54.27 kB / 1.091 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004674/0.9748, allocations: 319.4 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.975, allocations: 84.83 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.9752, allocations: 45.39 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.9752, allocations: 1.547 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.9754, allocations: 94.31 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.9754, allocations: 0 / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004933/0.9759, allocations: 177.1 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.976, allocations: 55.3 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.951e-05/0.976, allocations: 109.1 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.976, allocations: 32.77 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.17e-05/0.9761, allocations: 87.69 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.9761, allocations: 25.89 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.208e-05/0.9762, allocations: 30.48 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.445e-05/0.9762, allocations: 320.7 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.9764, allocations: 34.81 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.9765, allocations: 69.17 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.9767, allocations: 103.1 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.9768, allocations: 4 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003217/0.9771, allocations: 145.5 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.9771, allocations: 6.094 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.9771, allocations: 0.9375 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.9771, allocations: 2.219 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.9773, allocations: 23.03 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.9773, allocations: 6.188 kB / 1.093 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.998e-05/0.9774, allocations: 11.11 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.9774, allocations: 4.531 kB / 1.093 GB, free: 2.121 MB / 0.8575 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 7.755e-05/0.9775, allocations: 129 kB / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.609e-05/0.9775, allocations: 11.95 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003454/0.9778, allocations: 143.4 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.9779, allocations: 1.453 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.9779, allocations: 1 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.9779, allocations: 0.7031 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004844/0.9784, allocations: 421 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.9784, allocations: 0.5938 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.9784, allocations: 14.45 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.9785, allocations: 1.188 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.9785, allocations: 2.984 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.9785, allocations: 3.938 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9785, allocations: 0.5625 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003404/0.9788, allocations: 239.1 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.562e-05/0.9789, allocations: 84.06 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.9789, allocations: 1.938 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.979, allocations: 13.05 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.9791, allocations: 5.672 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.9791, allocations: 7.719 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.186e-05/0.9791, allocations: 86.67 kB / 1.094 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9791, allocations: 4 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002673/0.9794, allocations: 15.41 kB / 1.094 GB, free: 1.199 MB / 0.8575 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.0001511/0.9796, allocations: 106.5 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003258/0.9799, allocations: 97.38 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.9799, allocations: 0.9062 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.9801, allocations: 47.94 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.9803, allocations: 18.12 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003903/0.9807, allocations: 185.3 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.9809, allocations: 0.6901 MB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.909e-05/0.9809, allocations: 17.12 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.981, allocations: 0 / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of Templates: time 0.0033/0.9843, allocations: 1.107 MB / 1.096 GB, free: 92 kB / 0.8575 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/jenkins1/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