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.007245/0.007245, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001329/0.001329, allocations: 191.7 kB / 16.67 MB, free: 5.523 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: 222.9 MB / 240.4 MB, free: 15.15 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.392/2.392, allocations: 390.2 MB / 0.6648 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.91 kB / 0.9508 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.111/1.113, allocations: 140.4 MB / 1.088 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002408/1.115, allocations: 0.69 MB / 1.089 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001721/1.117, allocations: 1.064 MB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.138e-05/1.117, allocations: 5.219 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.826e-05/1.117, allocations: 4.734 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001182/1.117, allocations: 9.688 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/1.118, allocations: 48.59 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001391/1.118, allocations: 64.86 kB / 1.09 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/1.118, allocations: 14.5 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/1.118, allocations: 35.66 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.087e-05/1.118, allocations: 28.72 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.249e-05/1.118, allocations: 10.12 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.589e-05/1.118, allocations: 20.42 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.681e-05/1.118, allocations: 21.86 kB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.382e-05/1.118, allocations: 26.77 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/1.119, allocations: 73.3 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/1.119, allocations: 0 / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.333e-06/1.119, allocations: 0 / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.13e-05/1.119, allocations: 0 / 1.09 GB, free: 4.145 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.0006875/1.119, allocations: 384.8 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/1.119, allocations: 9.203 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/1.12, allocations: 9.719 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/1.12, allocations: 169.4 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.582e-05/1.12, allocations: 3.109 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/1.12, allocations: 9.938 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/1.12, allocations: 82.34 kB / 1.091 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/1.12, allocations: 4.125 kB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/1.12, allocations: 9.516 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/1.12, allocations: 1.125 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/1.12, allocations: 54.25 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006309/1.121, allocations: 315.1 kB / 1.091 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/1.121, allocations: 85.31 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/1.121, allocations: 44.64 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/1.121, allocations: 1.469 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003351/1.122, allocations: 91.62 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.864e-06/1.122, allocations: 0 / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005998/1.122, allocations: 176.4 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/1.122, allocations: 54.33 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.344e-05/1.122, allocations: 109.7 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/1.122, allocations: 28.94 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.002e-05/1.123, allocations: 88.05 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/1.123, allocations: 25.64 kB / 1.092 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.24e-05/1.123, allocations: 34.97 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.452e-05/1.123, allocations: 319.5 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/1.123, allocations: 40.05 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/1.123, allocations: 57.12 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/1.123, allocations: 113.4 kB / 1.092 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.123, allocations: 1.125 kB / 1.092 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003555/1.124, allocations: 141.2 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/1.124, allocations: 6.234 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/1.124, allocations: 0.875 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/1.124, allocations: 2.344 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/1.124, allocations: 19.2 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/1.124, allocations: 10.17 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.447e-05/1.124, allocations: 11.62 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/1.124, allocations: 8 kB / 1.092 GB, free: 2.145 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 0.0001043/1.124, allocations: 129.7 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/1.124, allocations: 7.422 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003946/1.125, allocations: 147.4 kB / 1.093 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/1.125, allocations: 5.562 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/1.125, allocations: 0 / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/1.125, allocations: 1.641 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006091/1.125, allocations: 416.8 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/1.125, allocations: 0 / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.397e-05/1.125, allocations: 14.69 kB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/1.125, allocations: 1.766 kB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/1.125, allocations: 5.766 kB / 1.093 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/1.125, allocations: 0.8438 kB / 1.093 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.126, allocations: 4.641 kB / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003747/1.126, allocations: 231.3 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.151e-05/1.126, allocations: 83.97 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.32e-05/1.126, allocations: 2.109 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/1.126, allocations: 16.31 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.898e-05/1.126, allocations: 10.2 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/1.126, allocations: 7.672 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.209e-05/1.126, allocations: 85.66 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.126, allocations: 0 / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002778/1.127, allocations: 20.36 kB / 1.094 GB, free: 1.219 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.0001848/1.127, allocations: 102.5 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003711/1.127, allocations: 105.5 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/1.127, allocations: 0 / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001492/1.127, allocations: 48.8 kB / 1.094 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/1.128, allocations: 11.12 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004469/1.128, allocations: 158.4 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/1.128, allocations: 0.695 MB / 1.095 GB, free: 252 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.398e-05/1.128, allocations: 6.688 kB / 1.095 GB, free: 252 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/1.128, allocations: 16.58 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of SimCode: time 3.4e-07/1.128, allocations: 0 / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of Templates: time 0.005358/1.134, allocations: 1.03 MB / 1.096 GB, free: 132 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/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