Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.002586/0.002586, allocations: 87.69 kB / 20.24 MB, free: 4.188 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.003135/0.003135, allocations: 161.7 kB / 23.55 MB, free: 0.875 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.63/1.63, allocations: 177.1 MB / 203.9 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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 3.038/3.038, allocations: 377.9 MB / 0.6232 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 176] 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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.8108 GB, free: 2.016 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.067e-05/3.215e-05, allocations: 8.188 kB / 0.8108 GB, free: 2.008 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003376/0.003408, allocations: 1.81 MB / 0.8126 GB, free: 216 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001726/0.005134, allocations: 0.6946 MB / 0.8132 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.005235, allocations: 4 kB / 0.8132 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.005376, allocations: 27.69 kB / 0.8133 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.963e-05/0.005455, allocations: 29.19 kB / 0.8133 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007252/0.00618, allocations: 264.2 kB / 0.8135 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0005174/0.006698, allocations: 407.4 kB / 0.8139 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003495/0.007047, allocations: 212.9 kB / 0.8141 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002758/0.007323, allocations: 203.7 kB / 0.8143 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.00753, allocations: 104.4 kB / 0.8144 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 7.077e-05/0.007601, allocations: 40 kB / 0.8145 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.007725, allocations: 68.44 kB / 0.8145 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.689e-05/0.007822, allocations: 72.41 kB / 0.8146 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.007959, allocations: 99.8 kB / 0.8147 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000574/0.008533, allocations: 447.3 kB / 0.8151 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.008536, allocations: 0 / 0.8151 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.343e-06/0.008537, allocations: 1.375 kB / 0.8151 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.008543, allocations: 0 / 0.8151 GB, free: 13.58 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009476/0.00949, allocations: 0.5983 MB / 0.8157 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.009526, allocations: 9.781 kB / 0.8157 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003031/0.009829, allocations: 64.77 kB / 0.8158 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/0.01019, allocations: 204.3 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.01022, allocations: 25.97 kB / 0.816 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.01028, allocations: 32.31 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005107/0.01079, allocations: 285 kB / 0.8163 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.0108, allocations: 0.75 kB / 0.8163 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.01083, allocations: 20.34 kB / 0.8163 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.01084, allocations: 8.938 kB / 0.8163 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.01121, allocations: 174.9 kB / 0.8165 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.01257, allocations: 0.9021 MB / 0.8174 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.01294, allocations: 179.3 kB / 0.8175 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.01309, allocations: 85.94 kB / 0.8176 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.01312, allocations: 4 kB / 0.8176 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.01339, allocations: 156 kB / 0.8178 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=27): time 1.393e-06/0.01339, allocations: 0 / 0.8178 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of matching and sorting (n=27): time 0.0005766/0.01397, allocations: 277 kB / 0.818 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.01402, allocations: 59.41 kB / 0.8181 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.01427, allocations: 265 kB / 0.8184 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.009e-05/0.01432, allocations: 42.41 kB / 0.8184 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.01447, allocations: 191.5 kB / 0.8186 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.441e-05/0.01456, allocations: 75.98 kB / 0.8187 GB, free: 9.781 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001978/0.01476, allocations: 131.3 kB / 0.8188 GB, free: 9.645 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002857/0.01504, allocations: 0.5095 MB / 0.8193 GB, free: 9.125 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.01528, allocations: 133.7 kB / 0.8194 GB, free: 8.988 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004447/0.01573, allocations: 240 kB / 0.8196 GB, free: 8.711 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.01614, allocations: 281.2 kB / 0.8199 GB, free: 8.402 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.01614, allocations: 0 / 0.8199 GB, free: 8.402 MB / 0.7761 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007006/0.01685, allocations: 421 kB / 0.8203 GB, free: 7.977 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.357e-05/0.01689, allocations: 33.7 kB / 0.8203 GB, free: 7.938 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.0169, allocations: 7.984 kB / 0.8203 GB, free: 7.93 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.01691, allocations: 0 / 0.8203 GB, free: 7.93 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.01706, allocations: 39.86 kB / 0.8204 GB, free: 7.891 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.01708, allocations: 7.938 kB / 0.8204 GB, free: 7.883 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.01729, allocations: 50.95 kB / 0.8204 GB, free: 7.836 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.01733, allocations: 19.98 kB / 0.8205 GB, free: 7.816 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * 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.000202/0.01753, allocations: 212.5 kB / 0.8207 GB, free: 7.602 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.01757, allocations: 27.89 kB / 0.8207 GB, free: 7.574 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.023e-05/0.01763, allocations: 21.97 kB / 0.8207 GB, free: 7.555 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01764, allocations: 1.094 kB / 0.8207 GB, free: 7.555 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.01764, allocations: 0 / 0.8207 GB, free: 7.555 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.01765, allocations: 3.938 kB / 0.8207 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009329/0.01858, allocations: 0.6365 MB / 0.8213 GB, free: 6.871 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01858, allocations: 0 / 0.8213 GB, free: 6.871 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.29e-05/0.01867, allocations: 19.92 kB / 0.8213 GB, free: 6.852 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.473e-06/0.01867, allocations: 4.969 kB / 0.8214 GB, free: 6.848 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.01869, allocations: 8 kB / 0.8214 GB, free: 6.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.01869, allocations: 0 / 0.8214 GB, free: 6.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.0187, allocations: 0.5938 kB / 0.8214 GB, free: 6.84 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004475/0.01914, allocations: 374.1 kB / 0.8217 GB, free: 6.457 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.389e-05/0.01917, allocations: 19.83 kB / 0.8217 GB, free: 6.438 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.0192, allocations: 11.94 kB / 0.8217 GB, free: 6.426 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.221e-05/0.01929, allocations: 8 kB / 0.8218 GB, free: 6.418 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.615e-05/0.01938, allocations: 25.11 kB / 0.8218 GB, free: 6.395 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.01939, allocations: 15.94 kB / 0.8218 GB, free: 6.379 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001072/0.0195, allocations: 147.1 kB / 0.8219 GB, free: 6.234 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.11e-07/0.0195, allocations: 5.094 kB / 0.8219 GB, free: 6.23 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003221/0.01982, allocations: 63.88 kB / 0.822 GB, free: 6.168 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: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001786/0.02, allocations: 112.6 kB / 0.8221 GB, free: 6.047 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005738/0.02058, allocations: 359.1 kB / 0.8225 GB, free: 5.676 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.02058, allocations: 0 / 0.8225 GB, free: 5.676 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.02078, allocations: 121 kB / 0.8226 GB, free: 5.555 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.0211, allocations: 30.97 kB / 0.8226 GB, free: 5.527 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007498/0.02185, allocations: 396.9 kB / 0.823 GB, free: 5.109 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.022, allocations: 132.9 kB / 0.8231 GB, free: 4.961 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 8.384e-05/0.02208, allocations: 28.83 kB / 0.8231 GB, free: 4.938 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.844e-05/0.02215, allocations: 28.5 kB / 0.8232 GB, free: 4.91 MB / 0.7761 GB Notification: Performance of SimCode: time 5.01e-07/0.02215, allocations: 0 / 0.8232 GB, free: 4.91 MB / 0.7761 GB Notification: Performance of Templates: time 0.007308/0.02946, allocations: 2.769 MB / 0.8259 GB, free: 2.199 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.632699513924308]