Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007414/0.0007414, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000978/0.001719, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006591/0.0006591, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008488/0.001508, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9479/0.9479, allocations: 177.2 MB / 189.7 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08257/1.03, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.418/2.418, allocations: 447.1 MB / 0.675 GB, free: 5.871 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2602/2.678, allocations: 146 MB / 0.8176 GB, free: 3.785 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.8189 GB, free: 2.48 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.399e-05, allocations: 6.312 kB / 0.8189 GB, free: 2.473 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00336/0.003384, allocations: 1.867 MB / 0.8207 GB, free: 0.5859 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001229/0.004613, allocations: 0.7085 MB / 0.8214 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.00474, allocations: 7.938 kB / 0.8214 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.004855, allocations: 35.67 kB / 0.8215 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.227e-05/0.004928, allocations: 19.75 kB / 0.8215 GB, free: 15.81 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.005657, allocations: 255.4 kB / 0.8217 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0005473/0.006204, allocations: 411.3 kB / 0.8221 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003403/0.006544, allocations: 202 kB / 0.8223 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002533/0.006797, allocations: 215.6 kB / 0.8225 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.006997, allocations: 103.7 kB / 0.8226 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.007054, allocations: 43.94 kB / 0.8227 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.007199, allocations: 55.98 kB / 0.8227 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 7.935e-05/0.007278, allocations: 55.86 kB / 0.8228 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 9.924e-05/0.007378, allocations: 83.88 kB / 0.8229 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0003709/0.007749, allocations: 239.2 kB / 0.8231 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.46e-05/0.007763, allocations: 0 / 0.8231 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.573e-06/0.007765, allocations: 3.938 kB / 0.8231 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.786e-05/0.007783, allocations: 0 / 0.8231 GB, free: 14.18 MB / 0.8073 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.0008129/0.008595, allocations: 0.5048 MB / 0.8236 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.008633, allocations: 8.031 kB / 0.8236 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003822/0.009015, allocations: 134 kB / 0.8237 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.009329, allocations: 175.8 kB / 0.8239 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.009365, allocations: 20.88 kB / 0.8239 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.003e-05/0.009405, allocations: 36.36 kB / 0.8239 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.009647, allocations: 208 kB / 0.8241 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.009658, allocations: 192 / 0.8241 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.009671, allocations: 4.375 kB / 0.8241 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.009681, allocations: 12.38 kB / 0.8242 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.479e-05/0.009776, allocations: 75.33 kB / 0.8242 GB, free: 12.93 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006186/0.01039, allocations: 0.539 MB / 0.8248 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.01054, allocations: 102.4 kB / 0.8248 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.098e-05/0.01058, allocations: 40.84 kB / 0.8249 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.01059, allocations: 4 kB / 0.8249 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/0.01073, allocations: 116 kB / 0.825 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.01073, allocations: 0 / 0.825 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of matching and sorting (n=27): time 0.0002003/0.01093, allocations: 156.6 kB / 0.8252 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.01096, allocations: 55.41 kB / 0.8252 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.01106, allocations: 167.7 kB / 0.8254 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.01109, allocations: 41.7 kB / 0.8254 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.01116, allocations: 132.9 kB / 0.8255 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.19e-05/0.0112, allocations: 79.38 kB / 0.8256 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.01128, allocations: 85.62 kB / 0.8257 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.953e-05/0.01136, allocations: 334.7 kB / 0.826 GB, free: 11 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.366e-05/0.01143, allocations: 73.67 kB / 0.8261 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.887e-05/0.01153, allocations: 144.6 kB / 0.8262 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.01168, allocations: 188.8 kB / 0.8264 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.01168, allocations: 0 / 0.8264 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002224/0.0119, allocations: 265.7 kB / 0.8266 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/0.01194, allocations: 41.73 kB / 0.8267 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.01195, allocations: 4 kB / 0.8267 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.01196, allocations: 4 kB / 0.8267 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.01208, allocations: 39.92 kB / 0.8267 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.01209, allocations: 11.92 kB / 0.8267 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.0122, allocations: 43.77 kB / 0.8268 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.01221, allocations: 15.94 kB / 0.8268 GB, free: 10.09 MB / 0.8073 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.suspend,sta.stateGraphRoot.resume) * 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 9.457e-05/0.01231, allocations: 153.7 kB / 0.8269 GB, free: 9.93 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.778e-05/0.01233, allocations: 15.98 kB / 0.827 GB, free: 9.914 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.01236, allocations: 21.97 kB / 0.827 GB, free: 9.887 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.01236, allocations: 4 kB / 0.827 GB, free: 9.883 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.01236, allocations: 0 / 0.827 GB, free: 9.883 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.01237, allocations: 3.984 kB / 0.827 GB, free: 9.879 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.0127, allocations: 363.7 kB / 0.8273 GB, free: 9.496 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01271, allocations: 3.984 kB / 0.8273 GB, free: 9.492 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.781e-05/0.01275, allocations: 19.94 kB / 0.8274 GB, free: 9.473 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.01277, allocations: 23.78 kB / 0.8274 GB, free: 9.449 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.01277, allocations: 4 kB / 0.8274 GB, free: 9.445 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.01278, allocations: 11.92 kB / 0.8274 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.01278, allocations: 0 / 0.8274 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.01278, allocations: 4 kB / 0.8274 GB, free: 9.43 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.01291, allocations: 214.1 kB / 0.8276 GB, free: 9.207 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.01293, allocations: 4 kB / 0.8276 GB, free: 9.203 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.33e-05/0.01297, allocations: 11.98 kB / 0.8276 GB, free: 9.191 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.01302, allocations: 27.89 kB / 0.8276 GB, free: 9.164 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.01303, allocations: 7.984 kB / 0.8277 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.244e-05/0.01305, allocations: 27.02 kB / 0.8277 GB, free: 9.129 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.01305, allocations: 4 kB / 0.8277 GB, free: 9.125 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001837/0.01323, allocations: 59.89 kB / 0.8277 GB, free: 9.066 MB / 0.8073 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.000131/0.01336, allocations: 102.7 kB / 0.8278 GB, free: 8.961 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002221/0.01359, allocations: 255.2 kB / 0.8281 GB, free: 8.691 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/0.01359, allocations: 0.6562 kB / 0.8281 GB, free: 8.691 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.599e-05/0.01366, allocations: 60.84 kB / 0.8281 GB, free: 8.629 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.0139, allocations: 281.4 kB / 0.8284 GB, free: 8.305 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005798/0.01448, allocations: 363.5 kB / 0.8288 GB, free: 7.926 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.635e-05/0.01453, allocations: 80.33 kB / 0.8288 GB, free: 7.824 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.704e-05/0.01459, allocations: 25.94 kB / 0.8289 GB, free: 7.801 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.0147, allocations: 95.36 kB / 0.829 GB, free: 7.707 MB / 0.8073 GB Notification: Performance of SimCode: time 7.81e-07/0.0147, allocations: 0 / 0.829 GB, free: 7.707 MB / 0.8073 GB Notification: Performance of Templates: time 0.004591/0.01929, allocations: 3.026 MB / 0.8319 GB, free: 4.738 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.166485629044473]