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.001469/0.001469, allocations: 80.3 kB / 21.47 MB, free: 3.035 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.001092/0.001092, allocations: 169.1 kB / 24.86 MB, free: 9.289 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.041/1.041, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.916/1.916, allocations: 377.9 MB / 0.6247 GB, free: 8.398 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 1.573e-06/1.573e-06, allocations: 0 / 0.8128 GB, free: 1.496 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.48e-05/1.637e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.492 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002501/0.002518, allocations: 0.6875 MB / 0.8134 GB, free: 0.8242 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001221/0.003739, allocations: 1.125 MB / 0.8145 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.523e-05/0.003784, allocations: 0 / 0.8145 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.00381, allocations: 5.062 kB / 0.8145 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.144e-05/0.003872, allocations: 7.922 kB / 0.8145 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.004113, allocations: 45.31 kB / 0.8146 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.565e-05/0.004209, allocations: 63.77 kB / 0.8146 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 7.373e-05/0.004282, allocations: 0 / 0.8146 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 7.923e-05/0.004362, allocations: 31.97 kB / 0.8147 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.619e-05/0.004408, allocations: 23.91 kB / 0.8147 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.004429, allocations: 5.031 kB / 0.8147 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.407e-05/0.004493, allocations: 19.92 kB / 0.8147 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.004516, allocations: 12.77 kB / 0.8147 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.004541, allocations: 19.92 kB / 0.8147 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.004654, allocations: 53.55 kB / 0.8148 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.664e-06/0.004656, allocations: 0 / 0.8148 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.32e-07/0.004657, allocations: 0 / 0.8148 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.004661, allocations: 0 / 0.8148 GB, free: 15.41 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.0004016/0.005062, allocations: 390 kB / 0.8152 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.005095, allocations: 12.03 kB / 0.8152 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003095/0.00819, allocations: 20.77 kB / 0.8152 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.352e-05/0.008273, allocations: 114.3 kB / 0.8153 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.008285, allocations: 4.375 kB / 0.8153 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-06/0.008294, allocations: 4.375 kB / 0.8153 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.00841, allocations: 66.92 kB / 0.8154 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.008417, allocations: 192 / 0.8154 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.008425, allocations: 1.438 kB / 0.8154 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.443e-06/0.008431, allocations: 4.375 kB / 0.8154 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.945e-05/0.008461, allocations: 7.938 kB / 0.8154 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005369/0.008998, allocations: 253.8 kB / 0.8156 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.892e-05/0.009076, allocations: 51.05 kB / 0.8157 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.066e-05/0.009097, allocations: 14.28 kB / 0.8157 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.009116, allocations: 4 kB / 0.8157 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.823e-05/0.009194, allocations: 61.17 kB / 0.8158 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.009196, allocations: 0 / 0.8158 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.000162/0.009358, allocations: 81.77 kB / 0.8158 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.009392, allocations: 51.41 kB / 0.8159 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.416e-05/0.009466, allocations: 165.9 kB / 0.816 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.00948, allocations: 30.23 kB / 0.8161 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.009529, allocations: 131.5 kB / 0.8162 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.009549, allocations: 15.84 kB / 0.8162 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/0.009593, allocations: 35.88 kB / 0.8163 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.009711, allocations: 497.8 kB / 0.8167 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.891e-05/0.00973, allocations: 11.98 kB / 0.8167 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.182e-05/0.009772, allocations: 58.36 kB / 0.8168 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.048e-05/0.009842, allocations: 71.67 kB / 0.8169 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.009845, allocations: 0 / 0.8169 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001127/0.009957, allocations: 82.72 kB / 0.8169 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.009969, allocations: 5.375 kB / 0.8169 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.009975, allocations: 7.938 kB / 0.817 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.009985, allocations: 0 / 0.817 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.192e-05/0.01006, allocations: 19.92 kB / 0.817 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.818e-06/0.01006, allocations: 4.562 kB / 0.817 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.544e-05/0.0101, allocations: 5.062 kB / 0.817 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.357e-06/0.01011, allocations: 4 kB / 0.817 GB, free: 12.94 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.485e-05/0.01018, allocations: 165.5 kB / 0.8171 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.0102, allocations: 15.92 kB / 0.8172 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.0103, allocations: 77.98 kB / 0.8172 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.0103, allocations: 0.8438 kB / 0.8172 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.0103, allocations: 0 / 0.8172 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.01031, allocations: 2.219 kB / 0.8172 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002185/0.01053, allocations: 306.2 kB / 0.8175 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.01053, allocations: 8 kB / 0.8175 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.053e-05/0.01056, allocations: 4 kB / 0.8175 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.01056, allocations: 3.938 kB / 0.8175 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/0.01057, allocations: 3.984 kB / 0.8175 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.01057, allocations: 6.719 kB / 0.8176 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.01057, allocations: 0 / 0.8176 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.01069, allocations: 211.9 kB / 0.8178 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-06/0.0107, allocations: 0 / 0.8178 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.01071, allocations: 11.92 kB / 0.8178 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.007e-05/0.01077, allocations: 4 kB / 0.8178 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.0108, allocations: 17.44 kB / 0.8178 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.01081, allocations: 4 kB / 0.8178 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.447e-05/0.01085, allocations: 123.2 kB / 0.8179 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01085, allocations: 0 / 0.8179 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.003248/0.0141, allocations: 12 kB / 0.8179 GB, free: 11.92 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.0001107/0.01421, allocations: 105.1 kB / 0.818 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 9.761e-05/0.0143, allocations: 39.61 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.01431, allocations: 0.9688 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.607e-05/0.01434, allocations: 23.66 kB / 0.8181 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002314/0.01457, allocations: 12.64 kB / 0.8181 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003869/0.01496, allocations: 160.4 kB / 0.8182 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.859e-05/0.015, allocations: 59.22 kB / 0.8183 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.663e-05/0.01502, allocations: 7.984 kB / 0.8183 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.59e-05/0.01508, allocations: 74.2 kB / 0.8184 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of SimCode: time 5.31e-07/0.01508, allocations: 0 / 0.8184 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of Templates: time 0.009196/0.02428, allocations: 0.9754 MB / 0.8193 GB, free: 10.44 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.340071036014706]