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.0006994/0.0006994, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000945/0.001644, allocations: 435.8 kB / 10.33 MB, free: 368 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.0006888/0.0006888, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008569/0.001546, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.9504/0.9504, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08873/1.039, allocations: 53.65 MB / 243.2 MB, free: 15.58 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.449/2.449, allocations: 446.7 MB / 0.6745 GB, free: 6.23 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2713/2.72, allocations: 145.9 MB / 0.817 GB, free: 4.234 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 2.284e-06/2.284e-06, allocations: 0 / 0.8183 GB, free: 2.945 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.484e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.941 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003318/0.003342, allocations: 1.863 MB / 0.8201 GB, free: 1.059 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.004465, allocations: 0.7047 MB / 0.8208 GB, free: 360 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.004569, allocations: 7.938 kB / 0.8208 GB, free: 352 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.004673, allocations: 27.67 kB / 0.8208 GB, free: 324 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 6.951e-05/0.004742, allocations: 31.72 kB / 0.8209 GB, free: 292 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006448/0.005387, allocations: 259.4 kB / 0.8211 GB, free: 32 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0006225/0.00601, allocations: 411.2 kB / 0.8215 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003251/0.006335, allocations: 205.9 kB / 0.8217 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.00656, allocations: 207.6 kB / 0.8219 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.006748, allocations: 95.73 kB / 0.822 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 5.163e-05/0.0068, allocations: 40 kB / 0.822 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.00693, allocations: 59.97 kB / 0.8221 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 7.613e-05/0.007006, allocations: 63.86 kB / 0.8221 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.007111, allocations: 75.88 kB / 0.8222 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0003531/0.007464, allocations: 243.2 kB / 0.8224 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.95e-05/0.007483, allocations: 0 / 0.8224 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.102e-06/0.007484, allocations: 0 / 0.8224 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.12e-05/0.007505, allocations: 0 / 0.8224 GB, free: 14.66 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.0008623/0.008368, allocations: 0.5087 MB / 0.8229 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.008405, allocations: 8.031 kB / 0.8229 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003089/0.008714, allocations: 141.9 kB / 0.8231 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.008986, allocations: 166.6 kB / 0.8232 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.009023, allocations: 24.86 kB / 0.8233 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.009067, allocations: 36.38 kB / 0.8233 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.009361, allocations: 204 kB / 0.8235 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.009372, allocations: 192 / 0.8235 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.009392, allocations: 8.375 kB / 0.8235 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.009404, allocations: 8.375 kB / 0.8235 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001389/0.009543, allocations: 75.33 kB / 0.8236 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007862/0.01033, allocations: 0.539 MB / 0.8241 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.0105, allocations: 106.5 kB / 0.8242 GB, free: 12.73 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.7e-05/0.01056, allocations: 40.84 kB / 0.8242 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.01058, allocations: 4 kB / 0.8242 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.01075, allocations: 113.2 kB / 0.8244 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=27): time 1.894e-06/0.01075, allocations: 0 / 0.8244 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of matching and sorting (n=27): time 0.0002452/0.011, allocations: 154.2 kB / 0.8245 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.01104, allocations: 63.39 kB / 0.8246 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.01116, allocations: 162.5 kB / 0.8247 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.01119, allocations: 37.7 kB / 0.8248 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.01144, allocations: 140.9 kB / 0.8249 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.778e-05/0.0115, allocations: 75.39 kB / 0.825 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.01162, allocations: 89.61 kB / 0.825 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.645e-05/0.01171, allocations: 330.7 kB / 0.8254 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.01182, allocations: 77.67 kB / 0.8254 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.01195, allocations: 144.5 kB / 0.8256 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.01214, allocations: 186.3 kB / 0.8257 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.01215, allocations: 4 kB / 0.8258 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003095/0.01246, allocations: 269.4 kB / 0.826 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.0125, allocations: 33.7 kB / 0.826 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.0125, allocations: 4 kB / 0.826 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.01252, allocations: 4 kB / 0.8261 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.01269, allocations: 36.14 kB / 0.8261 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.01269, allocations: 15.92 kB / 0.8261 GB, free: 10.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.01286, allocations: 43.77 kB / 0.8261 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.01289, allocations: 19.92 kB / 0.8262 GB, free: 10.57 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 0.000117/0.01301, allocations: 145.8 kB / 0.8263 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.706e-05/0.01304, allocations: 19.98 kB / 0.8263 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.403e-05/0.01308, allocations: 17.97 kB / 0.8263 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.01308, allocations: 8 kB / 0.8263 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.01309, allocations: 0 / 0.8263 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.01309, allocations: 3.984 kB / 0.8263 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.01355, allocations: 363.7 kB / 0.8267 GB, free: 9.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.01356, allocations: 4 kB / 0.8267 GB, free: 9.977 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.041e-05/0.01364, allocations: 23.94 kB / 0.8267 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.792e-05/0.01366, allocations: 23.83 kB / 0.8267 GB, free: 9.93 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.01366, allocations: 0 / 0.8267 GB, free: 9.93 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.01367, allocations: 11.94 kB / 0.8268 GB, free: 9.918 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.01368, allocations: 0 / 0.8268 GB, free: 9.918 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01368, allocations: 4 kB / 0.8268 GB, free: 9.914 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/0.01386, allocations: 216.4 kB / 0.827 GB, free: 9.688 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.01389, allocations: 8 kB / 0.827 GB, free: 9.68 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.377e-05/0.01396, allocations: 7.984 kB / 0.827 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.647e-05/0.01403, allocations: 27.89 kB / 0.827 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.01404, allocations: 7.984 kB / 0.827 GB, free: 9.637 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.147e-05/0.01407, allocations: 27.66 kB / 0.827 GB, free: 9.609 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9e-08/0.01407, allocations: 3.938 kB / 0.827 GB, free: 9.605 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003078/0.01438, allocations: 63.89 kB / 0.8271 GB, free: 9.543 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.0001642/0.01454, allocations: 96.41 kB / 0.8272 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003179/0.01486, allocations: 234.3 kB / 0.8274 GB, free: 9.191 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.01487, allocations: 4 kB / 0.8274 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.38e-05/0.01496, allocations: 68.7 kB / 0.8275 GB, free: 9.117 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.01523, allocations: 42.41 kB / 0.8275 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000861/0.01609, allocations: 364.6 kB / 0.8279 GB, free: 8.699 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.104e-05/0.01616, allocations: 80.33 kB / 0.828 GB, free: 8.602 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 7.898e-05/0.01624, allocations: 25.94 kB / 0.828 GB, free: 8.578 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.01641, allocations: 99.33 kB / 0.8281 GB, free: 8.48 MB / 0.8073 GB Notification: Performance of SimCode: time 1.322e-06/0.01641, allocations: 0 / 0.8281 GB, free: 8.48 MB / 0.8073 GB Notification: Performance of Templates: time 0.006588/0.023, allocations: 3.105 MB / 0.8311 GB, free: 5.43 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.545240927487612]