Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.001358/0.001358, allocations: 80.3 kB / 21.47 MB, free: 3.027 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.001532/0.001532, allocations: 168.4 kB / 24.86 MB, free: 9.27 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 0.9545/0.9545, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.907/1.907, allocations: 377.9 MB / 0.6247 GB, free: 8.434 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.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.8128 GB, free: 1.465 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.369e-05, allocations: 6.25 kB / 0.8128 GB, free: 1.457 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.006062/0.006085, allocations: 1.823 MB / 0.8146 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.007204, allocations: 0.5563 MB / 0.8151 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00318/0.01038, allocations: 11.88 kB / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.01054, allocations: 23.73 kB / 0.8151 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.995e-05/0.01062, allocations: 25.11 kB / 0.8152 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.01085, allocations: 67.84 kB / 0.8152 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.01106, allocations: 175.4 kB / 0.8154 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.01119, allocations: 50.97 kB / 0.8155 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.01132, allocations: 79.75 kB / 0.8155 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.804e-05/0.01138, allocations: 43.81 kB / 0.8156 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.659e-05/0.01141, allocations: 12.59 kB / 0.8156 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 1.656e-05/0.01143, allocations: 8 kB / 0.8156 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.506e-05/0.01146, allocations: 29.25 kB / 0.8156 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.577e-05/0.01151, allocations: 35.86 kB / 0.8157 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.01168, allocations: 103.6 kB / 0.8158 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.01168, allocations: 0.5312 kB / 0.8158 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.183e-06/0.01168, allocations: 0 / 0.8158 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.01169, allocations: 1.938 kB / 0.8158 GB, free: 14.43 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005726/0.01226, allocations: 0.5147 MB / 0.8163 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.0123, allocations: 11.97 kB / 0.8163 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.337e-05/0.01235, allocations: 34.73 kB / 0.8163 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/0.01256, allocations: 176.3 kB / 0.8165 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.01257, allocations: 12.31 kB / 0.8165 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.0126, allocations: 13.03 kB / 0.8165 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.01279, allocations: 156.2 kB / 0.8166 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.0128, allocations: 4.188 kB / 0.8166 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.01281, allocations: 1.094 kB / 0.8166 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.01282, allocations: 8.469 kB / 0.8167 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.61e-05/0.01287, allocations: 37.31 kB / 0.8167 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003763/0.01664, allocations: 0.8596 MB / 0.8175 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.394e-05/0.01671, allocations: 40.41 kB / 0.8176 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.461e-05/0.01673, allocations: 15.69 kB / 0.8176 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.01675, allocations: 0 / 0.8176 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001389/0.01689, allocations: 121 kB / 0.8177 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.01689, allocations: 0 / 0.8177 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0002163/0.0171, allocations: 102.4 kB / 0.8178 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.01717, allocations: 136.5 kB / 0.8179 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.01731, allocations: 241.1 kB / 0.8182 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.01732, allocations: 33.7 kB / 0.8182 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.846e-05/0.01741, allocations: 183.9 kB / 0.8184 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.01744, allocations: 35.73 kB / 0.8184 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-05/0.0175, allocations: 47.34 kB / 0.8184 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003804/0.01788, allocations: 0.5009 MB / 0.8189 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.022e-05/0.01791, allocations: 11.98 kB / 0.8189 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.01802, allocations: 164.3 kB / 0.8191 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.01819, allocations: 213.3 kB / 0.8193 GB, free: 10.4 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.01819, allocations: 4 kB / 0.8193 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002098/0.0184, allocations: 159.9 kB / 0.8195 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.01842, allocations: 7.938 kB / 0.8195 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.01842, allocations: 9.281 kB / 0.8195 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.01844, allocations: 8 kB / 0.8195 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.617e-05/0.01853, allocations: 31.92 kB / 0.8195 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.01854, allocations: 12.73 kB / 0.8195 GB, free: 10.17 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.208e-05/0.01864, allocations: 19.89 kB / 0.8195 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.01865, allocations: 8.656 kB / 0.8196 GB, free: 10.14 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intNoReset.trigger_internal,intDef.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001001/0.01875, allocations: 173.2 kB / 0.8197 GB, free: 9.961 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.01878, allocations: 19.84 kB / 0.8197 GB, free: 9.941 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.894e-05/0.01881, allocations: 28.58 kB / 0.8198 GB, free: 9.918 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.01882, allocations: 0 / 0.8198 GB, free: 9.918 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.01882, allocations: 4 kB / 0.8198 GB, free: 9.914 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.01882, allocations: 0 / 0.8198 GB, free: 9.914 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/0.02237, allocations: 481 kB / 0.8202 GB, free: 9.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.02238, allocations: 8.25 kB / 0.8202 GB, free: 9.402 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.215e-05/0.02245, allocations: 19.92 kB / 0.8203 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.02245, allocations: 6.406 kB / 0.8203 GB, free: 9.379 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.02247, allocations: 4 kB / 0.8203 GB, free: 9.375 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.02247, allocations: 4 kB / 0.8203 GB, free: 9.371 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.02247, allocations: 0 / 0.8203 GB, free: 9.371 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.02273, allocations: 396 kB / 0.8206 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.535e-05/0.02275, allocations: 23.84 kB / 0.8207 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.02277, allocations: 1 kB / 0.8207 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.02289, allocations: 12.03 kB / 0.8207 GB, free: 8.922 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.02294, allocations: 17.03 kB / 0.8207 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.958e-06/0.02295, allocations: 4 kB / 0.8207 GB, free: 8.902 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.814e-05/0.02303, allocations: 164.2 kB / 0.8209 GB, free: 8.742 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.02303, allocations: 1.125 kB / 0.8209 GB, free: 8.742 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003211/0.02335, allocations: 28 kB / 0.8209 GB, free: 8.715 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001237/0.02348, allocations: 104.4 kB / 0.821 GB, free: 8.602 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000147/0.02362, allocations: 82.25 kB / 0.8211 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.02362, allocations: 0 / 0.8211 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.197e-05/0.02368, allocations: 35.61 kB / 0.8211 GB, free: 8.48 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004667/0.02414, allocations: 71.41 kB / 0.8212 GB, free: 8.418 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004694/0.02461, allocations: 341.4 kB / 0.8215 GB, free: 8.043 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.575e-05/0.02467, allocations: 72.62 kB / 0.8216 GB, free: 7.953 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.098e-05/0.02473, allocations: 19.25 kB / 0.8216 GB, free: 7.93 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.02484, allocations: 102.2 kB / 0.8217 GB, free: 7.828 MB / 0.7761 GB Notification: Performance of SimCode: time 5.71e-07/0.02484, allocations: 0.5 kB / 0.8217 GB, free: 7.828 MB / 0.7761 GB Notification: Performance of Templates: time 0.00959/0.03443, allocations: 2.366 MB / 0.824 GB, free: 5.523 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.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.079545742832124]