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.0009861/0.0009861, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.00176/0.00176, allocations: 169 kB / 24.28 MB, free: 276 kB / 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/1, allocations: 177.1 MB / 204.6 MB, free: 5.641 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 2.002/2.002, allocations: 377.8 MB / 0.6239 GB, free: 8.559 MB / 0.5886 GB " [Timeout remaining time 177] 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 1.873e-06/1.873e-06, allocations: 0.7656 kB / 0.8115 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.778e-05/1.966e-05, allocations: 3.312 kB / 0.8115 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001213/0.001233, allocations: 0.6817 MB / 0.8122 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.002271, allocations: 1.129 MB / 0.8133 GB, free: 316 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.395e-05/0.002315, allocations: 0 / 0.8133 GB, free: 316 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.506e-05/0.00234, allocations: 7.875 kB / 0.8133 GB, free: 308 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.491e-05/0.002395, allocations: 0 / 0.8133 GB, free: 308 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.002646, allocations: 47.7 kB / 0.8133 GB, free: 260 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 8.878e-05/0.002734, allocations: 61.12 kB / 0.8134 GB, free: 200 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 7.639e-05/0.002811, allocations: 7.984 kB / 0.8134 GB, free: 192 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 6.992e-05/0.002881, allocations: 27.97 kB / 0.8134 GB, free: 164 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 4.028e-05/0.002921, allocations: 25.5 kB / 0.8134 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.002934, allocations: 4 kB / 0.8134 GB, free: 136 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 5.32e-05/0.002988, allocations: 16 kB / 0.8135 GB, free: 120 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.991e-05/0.003007, allocations: 11.97 kB / 0.8135 GB, free: 108 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.003035, allocations: 22.2 kB / 0.8135 GB, free: 88 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.003144, allocations: 51.81 kB / 0.8135 GB, free: 36 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.003145, allocations: 0 / 0.8135 GB, free: 36 kB / 0.7605 GB Notification: Performance of FrontEnd: time 6.42e-07/0.003146, allocations: 0 / 0.8135 GB, free: 36 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.387e-06/0.003149, allocations: 0 / 0.8135 GB, free: 36 kB / 0.7605 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.000422/0.003571, allocations: 389.2 kB / 0.8139 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.003603, allocations: 15.97 kB / 0.8139 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.349e-05/0.003697, allocations: 13.36 kB / 0.8139 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.931e-05/0.003776, allocations: 110.3 kB / 0.8141 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.003788, allocations: 8.359 kB / 0.8141 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.0038, allocations: 12.3 kB / 0.8141 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.003913, allocations: 66.92 kB / 0.8141 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.00392, allocations: 0.8125 kB / 0.8141 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.003928, allocations: 384 / 0.8141 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.003935, allocations: 5.688 kB / 0.8141 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.573e-05/0.003971, allocations: 11.92 kB / 0.8142 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003041/0.004275, allocations: 271.8 kB / 0.8144 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.533e-05/0.00435, allocations: 44.14 kB / 0.8145 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.756e-05/0.004378, allocations: 19.8 kB / 0.8145 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.004392, allocations: 5.375 kB / 0.8145 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.307e-05/0.004465, allocations: 64.98 kB / 0.8145 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.004466, allocations: 0 / 0.8145 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0001779/0.004644, allocations: 77.69 kB / 0.8146 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.004679, allocations: 57.06 kB / 0.8147 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.068e-05/0.00475, allocations: 165.9 kB / 0.8148 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.004763, allocations: 25.7 kB / 0.8149 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.004805, allocations: 138.8 kB / 0.815 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.004824, allocations: 20.75 kB / 0.815 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.004857, allocations: 27.38 kB / 0.815 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.00496, allocations: 0.4892 MB / 0.8155 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.182e-05/0.004982, allocations: 8 kB / 0.8155 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.16e-05/0.005024, allocations: 58.36 kB / 0.8156 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.779e-05/0.005091, allocations: 76.02 kB / 0.8156 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.005093, allocations: 0.875 kB / 0.8156 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 9.829e-05/0.005192, allocations: 87.69 kB / 0.8157 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.005205, allocations: 11.94 kB / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.005209, allocations: 0 / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.005219, allocations: 0 / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.9e-05/0.005288, allocations: 15.94 kB / 0.8158 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.005296, allocations: 10.45 kB / 0.8158 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/0.005324, allocations: 8.25 kB / 0.8158 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.005331, allocations: 0 / 0.8158 GB, free: 13.52 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 6.891e-05/0.005399, allocations: 164.5 kB / 0.8159 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.217e-05/0.005412, allocations: 11.89 kB / 0.8159 GB, free: 13.34 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.005518, allocations: 86.53 kB / 0.816 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.005521, allocations: 0.5312 kB / 0.816 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.005524, allocations: 1.906 kB / 0.816 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.005527, allocations: 0 / 0.816 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.005739, allocations: 329.3 kB / 0.8163 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.00574, allocations: 3.938 kB / 0.8163 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.878e-05/0.005769, allocations: 8.047 kB / 0.8164 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.005772, allocations: 5.109 kB / 0.8164 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.00578, allocations: 4 kB / 0.8164 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.005781, allocations: 0 / 0.8164 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.005783, allocations: 4.547 kB / 0.8164 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.005894, allocations: 219.8 kB / 0.8166 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-06/0.005899, allocations: 0.6562 kB / 0.8166 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.005914, allocations: 4 kB / 0.8166 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.271e-05/0.005957, allocations: 8.578 kB / 0.8166 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.231e-05/0.005989, allocations: 15.41 kB / 0.8166 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.006001, allocations: 4 kB / 0.8166 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.188e-05/0.006032, allocations: 123.2 kB / 0.8167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.006032, allocations: 3.938 kB / 0.8167 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001581/0.006191, allocations: 16 kB / 0.8167 GB, free: 12.46 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.0001006/0.006291, allocations: 99.23 kB / 0.8168 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 9.626e-05/0.006387, allocations: 45.77 kB / 0.8169 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.006389, allocations: 0 / 0.8169 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.262e-05/0.006421, allocations: 27.67 kB / 0.8169 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.006618, allocations: 7.938 kB / 0.8169 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003963/0.007014, allocations: 155.1 kB / 0.8171 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.347e-05/0.007047, allocations: 64.27 kB / 0.8171 GB, free: 12 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.045e-05/0.007068, allocations: 4 kB / 0.8171 GB, free: 12 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.364e-05/0.007091, allocations: 13.62 kB / 0.8171 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of SimCode: time 5.41e-07/0.007092, allocations: 0 / 0.8171 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of Templates: time 0.002306/0.009398, allocations: 0.892 MB / 0.818 GB, free: 11.13 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.2559961611405015]