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.001489/0.001489, allocations: 84.39 kB / 20.23 MB, free: 4.176 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.001616/0.001616, allocations: 161.3 kB / 23.55 MB, free: 0.8633 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.5/1.5, allocations: 177.1 MB / 203.9 MB, free: 5.617 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 2.877/2.877, allocations: 377.8 MB / 0.6232 GB, free: 8.523 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 2.234e-06/2.234e-06, allocations: 0 / 0.8108 GB, free: 2.121 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.243e-05/3.467e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003573/0.003607, allocations: 1.768 MB / 0.8125 GB, free: 364 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001565/0.005172, allocations: 0.687 MB / 0.8132 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.005335, allocations: 4 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.00551, allocations: 31.61 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.005614, allocations: 33.62 kB / 0.8132 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009035/0.006518, allocations: 263.3 kB / 0.8135 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0006478/0.007165, allocations: 408 kB / 0.8139 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004193/0.007585, allocations: 184.7 kB / 0.8141 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/0.007925, allocations: 207.6 kB / 0.8143 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.008145, allocations: 100.2 kB / 0.8143 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 9.065e-05/0.008236, allocations: 41.38 kB / 0.8144 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.008368, allocations: 52 kB / 0.8144 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.96e-05/0.008468, allocations: 79.73 kB / 0.8145 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.008624, allocations: 99.78 kB / 0.8146 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0007341/0.009358, allocations: 455.2 kB / 0.815 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.009362, allocations: 1.375 kB / 0.815 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.012e-06/0.009363, allocations: 0 / 0.815 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.107e-05/0.009374, allocations: 3.938 kB / 0.815 GB, free: 13.75 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.001002/0.01038, allocations: 483.9 kB / 0.8155 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.01042, allocations: 12.03 kB / 0.8155 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/0.01077, allocations: 64.77 kB / 0.8156 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005164/0.01128, allocations: 215.2 kB / 0.8158 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.01133, allocations: 24.88 kB / 0.8158 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.939e-05/0.01139, allocations: 33.69 kB / 0.8158 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.01194, allocations: 271.3 kB / 0.8161 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.01195, allocations: 192 / 0.8161 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.01198, allocations: 8.375 kB / 0.8161 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.012, allocations: 12.98 kB / 0.8161 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000407/0.01241, allocations: 186.8 kB / 0.8163 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.01372, allocations: 0.7034 MB / 0.817 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003662/0.01408, allocations: 158.7 kB / 0.8171 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.01424, allocations: 74.2 kB / 0.8172 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.01427, allocations: 11.94 kB / 0.8172 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000287/0.01455, allocations: 141.2 kB / 0.8174 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.01455, allocations: 0.8438 kB / 0.8174 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of matching and sorting (n=27): time 0.0006487/0.0152, allocations: 277.7 kB / 0.8176 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.01527, allocations: 60.67 kB / 0.8177 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.01546, allocations: 172.6 kB / 0.8178 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.69e-05/0.01552, allocations: 37.7 kB / 0.8179 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.01567, allocations: 146 kB / 0.818 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.176e-05/0.01575, allocations: 71.47 kB / 0.8181 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.01591, allocations: 85.67 kB / 0.8182 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001932/0.0161, allocations: 330.8 kB / 0.8185 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.01636, allocations: 131.5 kB / 0.8186 GB, free: 9.922 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002993/0.01666, allocations: 189.5 kB / 0.8188 GB, free: 9.703 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.01708, allocations: 250 kB / 0.819 GB, free: 9.434 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.01709, allocations: 0 / 0.819 GB, free: 9.434 MB / 0.7761 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007384/0.01782, allocations: 402.8 kB / 0.8194 GB, free: 9.023 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.459e-05/0.01788, allocations: 39.62 kB / 0.8194 GB, free: 8.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.01789, allocations: 4 kB / 0.8195 GB, free: 8.977 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.452e-05/0.01792, allocations: 0 / 0.8195 GB, free: 8.977 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.01808, allocations: 31.92 kB / 0.8195 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.0181, allocations: 11.88 kB / 0.8195 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.01837, allocations: 49.12 kB / 0.8195 GB, free: 8.887 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.01841, allocations: 23.08 kB / 0.8196 GB, free: 8.867 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.0002042/0.01861, allocations: 169.7 kB / 0.8197 GB, free: 8.695 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.01866, allocations: 23.94 kB / 0.8197 GB, free: 8.672 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.01871, allocations: 21.97 kB / 0.8198 GB, free: 8.656 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.01872, allocations: 0 / 0.8198 GB, free: 8.656 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.01873, allocations: 7.938 kB / 0.8198 GB, free: 8.648 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.01873, allocations: 2.438 kB / 0.8198 GB, free: 8.648 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009233/0.01965, allocations: 0.5274 MB / 0.8203 GB, free: 8.082 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01966, allocations: 0 / 0.8203 GB, free: 8.082 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.338e-05/0.01975, allocations: 23.92 kB / 0.8203 GB, free: 8.059 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.01976, allocations: 3.938 kB / 0.8203 GB, free: 8.055 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.01977, allocations: 8 kB / 0.8203 GB, free: 8.047 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.01978, allocations: 0.9688 kB / 0.8203 GB, free: 8.047 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01978, allocations: 0 / 0.8203 GB, free: 8.047 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004561/0.02023, allocations: 319 kB / 0.8206 GB, free: 7.723 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.081e-05/0.02026, allocations: 23.83 kB / 0.8207 GB, free: 7.699 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.926e-05/0.02029, allocations: 4 kB / 0.8207 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.0204, allocations: 9.125 kB / 0.8207 GB, free: 7.688 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.554e-05/0.02049, allocations: 27.95 kB / 0.8207 GB, free: 7.66 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.02051, allocations: 8 kB / 0.8207 GB, free: 7.652 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.513e-05/0.02059, allocations: 96.36 kB / 0.8208 GB, free: 7.559 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.1e-07/0.02059, allocations: 4 kB / 0.8208 GB, free: 7.555 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003833/0.02098, allocations: 71.81 kB / 0.8209 GB, free: 7.484 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.0002124/0.02119, allocations: 117.6 kB / 0.821 GB, free: 7.363 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005947/0.02179, allocations: 302.2 kB / 0.8213 GB, free: 7.051 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.02179, allocations: 0.5 kB / 0.8213 GB, free: 7.051 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.02196, allocations: 93.3 kB / 0.8214 GB, free: 6.961 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.02233, allocations: 35.88 kB / 0.8214 GB, free: 6.926 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009287/0.02326, allocations: 391.9 kB / 0.8218 GB, free: 6.516 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001561/0.02342, allocations: 129.6 kB / 0.8219 GB, free: 6.375 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.583e-05/0.02352, allocations: 24.38 kB / 0.8219 GB, free: 6.352 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.203e-05/0.02359, allocations: 28.5 kB / 0.8219 GB, free: 6.324 MB / 0.7761 GB Notification: Performance of SimCode: time 5.41e-07/0.02359, allocations: 0 / 0.8219 GB, free: 6.324 MB / 0.7761 GB Notification: Performance of Templates: time 0.008498/0.03209, allocations: 2.78 MB / 0.8247 GB, free: 3.605 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] 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.040921233943664]