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.001612/0.001612, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001815/0.001815, allocations: 214.7 kB / 22.99 MB, free: 4.984 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.188/3.188, allocations: 0.49 GB / 0.7959 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 71.89 kB / 1.155 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3432, allocations: 176.1 MB / 1.327 GB, free: 1.125 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00324/0.3464, allocations: 1.758 MB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001368/0.3478, allocations: 0.6935 MB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.3479, allocations: 4 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.348, allocations: 31.61 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.288e-05/0.3481, allocations: 19.81 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000776/0.3489, allocations: 274.7 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005196/0.3494, allocations: 403.4 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.3497, allocations: 179.3 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.3499, allocations: 143.6 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.3501, allocations: 131.5 kB / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.292e-05/0.3502, allocations: 43.94 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.3503, allocations: 55.98 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.119e-05/0.3504, allocations: 75.81 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.3505, allocations: 111.6 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004998/0.351, allocations: 418.5 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.351, allocations: 4 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.222e-06/0.351, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.351, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 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.0008758/0.3519, allocations: 490.6 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3519, allocations: 12.03 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002923/0.3522, allocations: 40.77 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.3526, allocations: 210.2 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.7e-05/0.3527, allocations: 24.88 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-05/0.3527, allocations: 32.38 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005056/0.3532, allocations: 263.3 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3533, allocations: 192 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.3533, allocations: 19.88 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.3533, allocations: 8 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.3536, allocations: 181.8 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.3548, allocations: 0.6948 MB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.3551, allocations: 176.2 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.3553, allocations: 72.92 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.3553, allocations: 8 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.3556, allocations: 137.9 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.753e-06/0.3556, allocations: 0 / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005643/0.3562, allocations: 276.2 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.3562, allocations: 63.34 kB / 1.334 GB, free: 9.992 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.3564, allocations: 163.4 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.26e-05/0.3564, allocations: 41.7 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.3566, allocations: 140.8 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.887e-05/0.3566, allocations: 75.42 kB / 1.334 GB, free: 9.562 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.3568, allocations: 89.67 kB / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.3569, allocations: 326.8 kB / 1.335 GB, free: 9.141 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.3572, allocations: 129.7 kB / 1.335 GB, free: 9.008 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002789/0.3574, allocations: 197.3 kB / 1.335 GB, free: 8.781 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.3578, allocations: 252.8 kB / 1.335 GB, free: 8.504 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3578, allocations: 4 kB / 1.335 GB, free: 8.5 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006351/0.3585, allocations: 385.8 kB / 1.336 GB, free: 8.105 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.776e-05/0.3585, allocations: 37.69 kB / 1.336 GB, free: 8.062 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3585, allocations: 3.938 kB / 1.336 GB, free: 8.059 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3585, allocations: 4 kB / 1.336 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.3587, allocations: 31.92 kB / 1.336 GB, free: 8.023 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.3587, allocations: 8.219 kB / 1.336 GB, free: 8.016 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.359, allocations: 47.81 kB / 1.336 GB, free: 7.969 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.359, allocations: 19.98 kB / 1.336 GB, free: 7.949 MB / 1.029 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.000193/0.3592, allocations: 166.2 kB / 1.336 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.3592, allocations: 15.91 kB / 1.336 GB, free: 7.762 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.164e-05/0.3593, allocations: 29.83 kB / 1.336 GB, free: 7.73 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3593, allocations: 8 kB / 1.336 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3593, allocations: 0 / 1.336 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3593, allocations: 3.938 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008278/0.3601, allocations: 0.5295 MB / 1.336 GB, free: 7.148 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3601, allocations: 0 / 1.336 GB, free: 7.148 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.463e-05/0.3602, allocations: 15.94 kB / 1.336 GB, free: 7.133 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3602, allocations: 0 / 1.336 GB, free: 7.133 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.3602, allocations: 11.98 kB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.329e-05/0.3602, allocations: 3.984 kB / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3602, allocations: 0 / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004/0.3606, allocations: 313.2 kB / 1.337 GB, free: 6.797 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.299e-05/0.3607, allocations: 15.84 kB / 1.337 GB, free: 6.781 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.3607, allocations: 8 kB / 1.337 GB, free: 6.773 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.79e-05/0.3608, allocations: 7.984 kB / 1.337 GB, free: 6.766 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.3609, allocations: 31.94 kB / 1.337 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.3609, allocations: 8 kB / 1.337 GB, free: 6.727 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.62e-05/0.361, allocations: 105.2 kB / 1.337 GB, free: 6.625 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.361, allocations: 0 / 1.337 GB, free: 6.625 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000343/0.3613, allocations: 67.84 kB / 1.337 GB, free: 6.559 MB / 1.029 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.0001814/0.3615, allocations: 119 kB / 1.337 GB, free: 6.43 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005459/0.3621, allocations: 305.4 kB / 1.337 GB, free: 6.113 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3621, allocations: 0 / 1.337 GB, free: 6.113 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.3622, allocations: 92.12 kB / 1.338 GB, free: 6.023 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.3626, allocations: 33.64 kB / 1.338 GB, free: 5.992 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007379/0.3633, allocations: 381.3 kB / 1.338 GB, free: 5.598 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.3635, allocations: 129.6 kB / 1.338 GB, free: 5.449 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.627e-05/0.3635, allocations: 25.94 kB / 1.338 GB, free: 5.426 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.551e-05/0.3636, allocations: 27.44 kB / 1.338 GB, free: 5.398 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3636, allocations: 0 / 1.338 GB, free: 5.398 MB / 1.029 GB Notification: Performance of Templates: time 0.007186/0.3708, allocations: 2.905 MB / 1.341 GB, free: 2.539 MB / 1.029 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 -s gbode -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/jenkins1/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.670547237998107]