Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.415/1.415, allocations: 249.3 MB / 261.9 MB, free: 5.883 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 186.6 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.2 MB / 0.572 GB, free: 10.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008365/0.0008365, allocations: 93.41 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.788e-05/3.792e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2191, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7405/0.9596, allocations: 131.6 MB / 1.02 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.9599, allocations: 71.83 kB / 1.02 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002814/0.9628, allocations: 0.8945 MB / 1.021 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.984e-06/0.9628, allocations: 0 / 1.021 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.9628, allocations: 0 / 1.021 GB, free: 2.223 MB / 0.6355 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.0004956/0.9633, allocations: 353.3 kB / 1.022 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.9634, allocations: 8.031 kB / 1.022 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.9635, allocations: 9.156 kB / 1.022 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.9636, allocations: 167 kB / 1.022 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.9636, allocations: 4 kB / 1.022 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.9637, allocations: 6.812 kB / 1.022 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.9638, allocations: 51.12 kB / 1.022 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.9638, allocations: 0 / 1.022 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.9639, allocations: 7.297 kB / 1.022 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.9639, allocations: 0 / 1.022 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.973e-05/0.964, allocations: 22.44 kB / 1.022 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005765/0.9645, allocations: 294.9 kB / 1.022 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.9647, allocations: 49.02 kB / 1.022 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.846e-05/0.9647, allocations: 28.3 kB / 1.022 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.9648, allocations: 0 / 1.022 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.965, allocations: 64.75 kB / 1.022 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 4.188e-06/0.965, allocations: 0 / 1.022 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002562/0.9652, allocations: 78.7 kB / 1.022 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.9653, allocations: 59.42 kB / 1.022 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.9654, allocations: 104.3 kB / 1.022 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.9655, allocations: 29.27 kB / 1.023 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.021e-05/0.9655, allocations: 92.06 kB / 1.023 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.9656, allocations: 18.66 kB / 1.023 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-06/0.9656, allocations: 3.375 kB / 1.023 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.9658, allocations: 321.9 kB / 1.023 GB, free: 380 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.217e-05/0.9658, allocations: 11.31 kB / 1.023 GB, free: 372 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.341e-05/0.9659, allocations: 42.86 kB / 1.023 GB, free: 320 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.363e-05/0.9659, allocations: 19.3 kB / 1.023 GB, free: 304 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.966, allocations: 4 kB / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001494/0.9661, allocations: 83.81 kB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.9661, allocations: 8 kB / 1.023 GB, free: 216 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.9662, allocations: 0 / 1.023 GB, free: 216 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.9662, allocations: 12.16 kB / 1.023 GB, free: 204 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.9663, allocations: 15.98 kB / 1.023 GB, free: 188 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.9663, allocations: 7.938 kB / 1.023 GB, free: 180 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.204e-05/0.9664, allocations: 27.03 kB / 1.023 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.9664, allocations: 4 kB / 1.023 GB, free: 152 kB / 0.6355 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.225e-05/0.9665, allocations: 106.2 kB / 1.023 GB, free: 44 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.336e-05/0.9666, allocations: 4 kB / 1.023 GB, free: 40 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/0.9668, allocations: 88.17 kB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.9668, allocations: 0 / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.9668, allocations: 256 / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.9668, allocations: 7.938 kB / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003623/0.9672, allocations: 335.6 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.9672, allocations: 0 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.291e-05/0.9673, allocations: 11.98 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.473e-06/0.9673, allocations: 8 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.9673, allocations: 3.438 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.9673, allocations: 3.938 kB / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.9673, allocations: 4.141 kB / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001837/0.9675, allocations: 170.5 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.923e-05/0.9676, allocations: 84.95 kB / 1.024 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.428e-05/0.9677, allocations: 4 kB / 1.024 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.9678, allocations: 19.55 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.215e-05/0.9678, allocations: 7.969 kB / 1.024 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.9679, allocations: 7.953 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.837e-05/0.9679, allocations: 82.78 kB / 1.024 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9679, allocations: 0 / 1.024 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002173/0.9682, allocations: 12 kB / 1.024 GB, free: 15.16 MB / 0.6511 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) * 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 (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.0002279/0.9684, allocations: 98 kB / 1.024 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001555/0.9686, allocations: 50.11 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.9686, allocations: 0 / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.296e-05/0.9686, allocations: 23.44 kB / 1.024 GB, free: 15 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.9689, allocations: 7.5 kB / 1.024 GB, free: 15 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002913/0.9692, allocations: 88.34 kB / 1.024 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.9694, allocations: 0.6848 MB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.016e-05/0.9695, allocations: 12.36 kB / 1.025 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.9695, allocations: 7.438 kB / 1.025 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of SimCode: time 3.21e-07/0.9695, allocations: 3.938 kB / 1.025 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of Templates: time 0.002707/0.9722, allocations: 0.5879 MB / 1.026 GB, free: 13.59 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches