Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 83.59 kB / 20.45 MB, free: 4.117 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 165 kB / 23.82 MB, free: 0.7461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.007/1.007, allocations: 177.1 MB / 204.2 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.889/1.889, allocations: 377.8 MB / 0.6236 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.266e-06/3.266e-06, allocations: 0 / 0.8115 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.951e-05/3.277e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.723 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.00153/0.001563, allocations: 0.6904 MB / 0.8122 GB, free: 1.059 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.002767, allocations: 1.125 MB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.626e-05/0.002813, allocations: 0 / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.138e-05/0.002844, allocations: 3.938 kB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.064e-05/0.002915, allocations: 13.52 kB / 0.8133 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.003226, allocations: 47.7 kB / 0.8134 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.071e-05/0.003317, allocations: 51.84 kB / 0.8134 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.003417, allocations: 11.94 kB / 0.8134 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.451e-05/0.003502, allocations: 28.98 kB / 0.8134 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.971e-05/0.003552, allocations: 15.98 kB / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.00357, allocations: 4.781 kB / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.97e-05/0.00364, allocations: 23.92 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.003667, allocations: 15.97 kB / 0.8135 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.181e-05/0.003699, allocations: 9.688 kB / 0.8135 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.003864, allocations: 59.73 kB / 0.8136 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.003867, allocations: 0 / 0.8136 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.152e-06/0.003868, allocations: 0 / 0.8136 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.003873, allocations: 1.531 kB / 0.8136 GB, free: 15.64 MB / 0.7761 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.0004967/0.00437, allocations: 392.5 kB / 0.8139 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.004409, allocations: 9.781 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.004514, allocations: 12.83 kB / 0.814 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.573e-05/0.004599, allocations: 108.6 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.004614, allocations: 8.375 kB / 0.8141 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.004626, allocations: 384 / 0.8141 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.00477, allocations: 79.91 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.00478, allocations: 192 / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.00479, allocations: 4.312 kB / 0.8142 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.004798, allocations: 1.844 kB / 0.8142 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.942e-05/0.004838, allocations: 11.94 kB / 0.8142 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003697/0.005207, allocations: 271.7 kB / 0.8144 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.777e-05/0.005295, allocations: 45.58 kB / 0.8145 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.04e-05/0.005325, allocations: 23.8 kB / 0.8145 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.005346, allocations: 0 / 0.8145 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.594e-05/0.005432, allocations: 64.98 kB / 0.8146 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.005433, allocations: 4 kB / 0.8146 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0001965/0.00563, allocations: 81.67 kB / 0.8146 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/0.005667, allocations: 51.94 kB / 0.8147 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.97e-05/0.005746, allocations: 166.6 kB / 0.8148 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.005758, allocations: 25.7 kB / 0.8149 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.005804, allocations: 139.4 kB / 0.815 GB, free: 14 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.005826, allocations: 19.83 kB / 0.815 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.005864, allocations: 29.03 kB / 0.8151 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.005974, allocations: 0.4923 MB / 0.8155 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.434e-05/0.005998, allocations: 4 kB / 0.8155 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.902e-05/0.006047, allocations: 58.36 kB / 0.8156 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.742e-05/0.006125, allocations: 76.89 kB / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.006127, allocations: 0 / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000112/0.006239, allocations: 83.14 kB / 0.8157 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.006254, allocations: 11.94 kB / 0.8158 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.006259, allocations: 3.984 kB / 0.8158 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.006276, allocations: 4.5 kB / 0.8158 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.252e-05/0.006359, allocations: 17 kB / 0.8158 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.006364, allocations: 4 kB / 0.8158 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.144e-05/0.006396, allocations: 11.98 kB / 0.8158 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.006405, allocations: 4.906 kB / 0.8158 GB, free: 13.12 MB / 0.7761 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.416e-05/0.006479, allocations: 164.6 kB / 0.816 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.006492, allocations: 12.73 kB / 0.816 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001327/0.006625, allocations: 74.05 kB / 0.816 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.006627, allocations: 2.219 kB / 0.816 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.006631, allocations: 0 / 0.816 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.006634, allocations: 0 / 0.816 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.006866, allocations: 333.3 kB / 0.8164 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.006868, allocations: 0 / 0.8164 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.701e-05/0.006905, allocations: 11.94 kB / 0.8164 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.006908, allocations: 2.719 kB / 0.8164 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.006917, allocations: 4 kB / 0.8164 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.006918, allocations: 0 / 0.8164 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.00692, allocations: 4 kB / 0.8164 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/0.00704, allocations: 219.8 kB / 0.8166 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.665e-06/0.007048, allocations: 4 kB / 0.8166 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.007064, allocations: 0 / 0.8166 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.692e-05/0.007111, allocations: 9.516 kB / 0.8166 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.007149, allocations: 8 kB / 0.8166 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.007162, allocations: 3.984 kB / 0.8166 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.628e-05/0.007198, allocations: 123.2 kB / 0.8167 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.007199, allocations: 0.5 kB / 0.8167 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001716/0.00737, allocations: 17.34 kB / 0.8167 GB, free: 12.08 MB / 0.7761 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) * Number of clocked states: 0 () * 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 (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.0001386/0.007509, allocations: 115.1 kB / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001097/0.007618, allocations: 40.58 kB / 0.8169 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.00762, allocations: 0 / 0.8169 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.007657, allocations: 28.33 kB / 0.8169 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.007859, allocations: 13.52 kB / 0.8169 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005402/0.008399, allocations: 150.2 kB / 0.8171 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.3e-05/0.008442, allocations: 67.14 kB / 0.8171 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.738e-05/0.00847, allocations: 4 kB / 0.8171 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.0085, allocations: 12.5 kB / 0.8172 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of SimCode: time 7.21e-07/0.008501, allocations: 1.688 kB / 0.8172 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of Templates: time 0.002806/0.01131, allocations: 0.8858 MB / 0.818 GB, free: 10.74 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.381635533180088]