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.001446/0.001446, allocations: 80.77 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001734/0.001734, allocations: 163.3 kB / 22.46 MB, free: 5.375 MB / 14.72 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.47/1.47, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.973/2.973, allocations: 389 MB / 0.633 GB, free: 1.012 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.014e-06/2.014e-06, allocations: 0 / 1 GB, free: 7.344 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.053e-05/3.254e-05, allocations: 2.281 kB / 1 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003718/0.003751, allocations: 1.759 MB / 1.002 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001653/0.005404, allocations: 0.6969 MB / 1.003 GB, free: 4.875 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.005567, allocations: 7.938 kB / 1.003 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001974/0.005765, allocations: 31.67 kB / 1.003 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.005881, allocations: 27.73 kB / 1.003 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009119/0.006793, allocations: 253.3 kB / 1.003 GB, free: 4.562 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006722/0.007465, allocations: 415.3 kB / 1.003 GB, free: 4.156 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000387/0.007852, allocations: 187.2 kB / 1.003 GB, free: 3.977 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.008193, allocations: 207.6 kB / 1.004 GB, free: 3.773 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.008431, allocations: 99.72 kB / 1.004 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.338e-05/0.008514, allocations: 40 kB / 1.004 GB, free: 3.637 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001364/0.008651, allocations: 55.98 kB / 1.004 GB, free: 3.582 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.008755, allocations: 67.81 kB / 1.004 GB, free: 3.516 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.008947, allocations: 107.8 kB / 1.004 GB, free: 3.41 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006077/0.009554, allocations: 450.7 kB / 1.004 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.009558, allocations: 0 / 1.004 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.787e-06/0.009561, allocations: 4 kB / 1.004 GB, free: 2.965 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.513e-05/0.009577, allocations: 3.938 kB / 1.004 GB, free: 2.961 MB / 0.9512 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.001035/0.01061, allocations: 486.7 kB / 1.005 GB, free: 2.441 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.01065, allocations: 8.031 kB / 1.005 GB, free: 2.434 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000334/0.01098, allocations: 36.78 kB / 1.005 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.01143, allocations: 207.7 kB / 1.005 GB, free: 2.172 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/0.01149, allocations: 24.86 kB / 1.005 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-05/0.01155, allocations: 40.31 kB / 1.005 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.01209, allocations: 271.3 kB / 1.005 GB, free: 1.832 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.0121, allocations: 192 / 1.005 GB, free: 1.832 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.01213, allocations: 4.375 kB / 1.005 GB, free: 1.828 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.01214, allocations: 8.375 kB / 1.005 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003951/0.01254, allocations: 193.8 kB / 1.006 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.01383, allocations: 0.687 MB / 1.006 GB, free: 0.9102 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.01418, allocations: 154.9 kB / 1.006 GB, free: 0.75 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.01433, allocations: 76.83 kB / 1.006 GB, free: 0.6719 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.01435, allocations: 11.94 kB / 1.007 GB, free: 0.6602 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002833/0.01464, allocations: 153 kB / 1.007 GB, free: 0.4961 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=27): time 1.964e-06/0.01464, allocations: 0 / 1.007 GB, free: 0.4961 MB / 0.9512 GB Notification: Performance of matching and sorting (n=27): time 0.0005989/0.01524, allocations: 263.6 kB / 1.007 GB, free: 240 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.0153, allocations: 55.41 kB / 1.007 GB, free: 172 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.01551, allocations: 169.6 kB / 1.007 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.01556, allocations: 37.7 kB / 1.007 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.01571, allocations: 140.8 kB / 1.007 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.868e-05/0.01579, allocations: 71.45 kB / 1.007 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.01596, allocations: 93.67 kB / 1.007 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.01613, allocations: 326.8 kB / 1.008 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.01638, allocations: 129.7 kB / 1.008 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003296/0.01671, allocations: 196.5 kB / 1.008 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004196/0.01713, allocations: 246 kB / 1.008 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.01713, allocations: 0 / 1.008 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007039/0.01784, allocations: 386 kB / 1.009 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.233e-05/0.01789, allocations: 37.7 kB / 1.009 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.0179, allocations: 4 kB / 1.009 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.01792, allocations: 11.92 kB / 1.009 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.01808, allocations: 23.92 kB / 1.009 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.01809, allocations: 15.86 kB / 1.009 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.01836, allocations: 55.97 kB / 1.009 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.975e-05/0.0184, allocations: 16 kB / 1.009 GB, free: 14.12 MB / 0.9669 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.0002079/0.01861, allocations: 166.3 kB / 1.009 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.01864, allocations: 15.91 kB / 1.009 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.184e-05/0.01871, allocations: 21.97 kB / 1.009 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.01871, allocations: 3.984 kB / 1.009 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.01872, allocations: 7.875 kB / 1.009 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01873, allocations: 4 kB / 1.009 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000877/0.0196, allocations: 0.5266 MB / 1.01 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.01961, allocations: 0 / 1.01 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.646e-05/0.01969, allocations: 19.92 kB / 1.01 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.0197, allocations: 7.938 kB / 1.01 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.01972, allocations: 4 kB / 1.01 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.01973, allocations: 4 kB / 1.01 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.01973, allocations: 3.984 kB / 1.01 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004146/0.02015, allocations: 300.1 kB / 1.01 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.142e-05/0.02018, allocations: 23.78 kB / 1.01 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.02021, allocations: 8 kB / 1.01 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.02032, allocations: 7.984 kB / 1.01 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.02041, allocations: 31.91 kB / 1.01 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.02043, allocations: 7.984 kB / 1.01 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.678e-05/0.02053, allocations: 105 kB / 1.01 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.02053, allocations: 0 / 1.01 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003506/0.02088, allocations: 63.84 kB / 1.01 GB, free: 12.74 MB / 0.9669 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.0002041/0.02108, allocations: 123.2 kB / 1.01 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005803/0.02166, allocations: 301.5 kB / 1.011 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.02167, allocations: 0 / 1.011 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.02183, allocations: 91.84 kB / 1.011 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.02218, allocations: 27.92 kB / 1.011 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008218/0.023, allocations: 384.2 kB / 1.011 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.02316, allocations: 130 kB / 1.011 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 9.129e-05/0.02325, allocations: 25.95 kB / 1.011 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.703e-05/0.02333, allocations: 28.48 kB / 1.011 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of SimCode: time 5.21e-07/0.02333, allocations: 0 / 1.011 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of Templates: time 0.007867/0.0312, allocations: 2.762 MB / 1.014 GB, free: 8.855 MB / 0.9669 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.544372364878654]