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.0014/0.0014, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.00153/0.00153, allocations: 215 kB / 22.99 MB, free: 4.945 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.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.278/3.278, allocations: 0.4892 GB / 0.7951 GB, free: 35.72 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.002132/0.002132, allocations: 74.91 kB / 1.154 GB, free: 25.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3805, allocations: 176.1 MB / 1.326 GB, free: 1.906 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003217/0.3837, allocations: 1.777 MB / 1.328 GB, free: 124 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001364/0.3851, allocations: 0.6857 MB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.3852, allocations: 7.938 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.3853, allocations: 31.67 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.871e-05/0.3854, allocations: 23.75 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007454/0.3862, allocations: 262.2 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005128/0.3867, allocations: 407.4 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003041/0.387, allocations: 171.3 kB / 1.33 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.3871, allocations: 147.5 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.3873, allocations: 119.5 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.3874, allocations: 40 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3875, allocations: 48 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.652e-05/0.3876, allocations: 75.75 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.3877, allocations: 119.6 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004884/0.3882, allocations: 418.5 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3882, allocations: 0 / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3882, allocations: 0 / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.3882, allocations: 0 / 1.33 GB, free: 13.6 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.0008245/0.3891, allocations: 494.6 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.3891, allocations: 12.03 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/0.3894, allocations: 40.77 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.3898, allocations: 209.1 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/0.3898, allocations: 24.88 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.875e-05/0.3899, allocations: 32.38 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.3904, allocations: 267.3 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3904, allocations: 192 / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.3904, allocations: 19.92 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.3904, allocations: 4 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003371/0.3908, allocations: 181.9 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.3919, allocations: 0.6987 MB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003184/0.3922, allocations: 155.4 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.3923, allocations: 80.83 kB / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.3923, allocations: 0 / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.3926, allocations: 141.9 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.3926, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005259/0.3931, allocations: 271.5 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.3932, allocations: 63.39 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.3933, allocations: 167.8 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.89e-05/0.3934, allocations: 41.7 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.3935, allocations: 144.8 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/0.3936, allocations: 67.44 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.3937, allocations: 89.67 kB / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3938, allocations: 330.8 kB / 1.334 GB, free: 9.941 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.3941, allocations: 125.7 kB / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.3943, allocations: 197.2 kB / 1.334 GB, free: 9.586 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.3947, allocations: 248.8 kB / 1.334 GB, free: 9.312 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3947, allocations: 4 kB / 1.334 GB, free: 9.309 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005929/0.3953, allocations: 389.8 kB / 1.335 GB, free: 8.91 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.3953, allocations: 37.69 kB / 1.335 GB, free: 8.867 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3953, allocations: 4.156 kB / 1.335 GB, free: 8.863 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3954, allocations: 8 kB / 1.335 GB, free: 8.855 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.3955, allocations: 31.92 kB / 1.335 GB, free: 8.824 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3955, allocations: 7.938 kB / 1.335 GB, free: 8.816 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.3957, allocations: 43.81 kB / 1.335 GB, free: 8.773 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.3958, allocations: 19.98 kB / 1.335 GB, free: 8.754 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.0001825/0.396, allocations: 174.2 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.396, allocations: 19.83 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.237e-05/0.3961, allocations: 29.89 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3961, allocations: 7.938 kB / 1.335 GB, free: 8.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3961, allocations: 0 / 1.335 GB, free: 8.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3961, allocations: 0 / 1.335 GB, free: 8.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007633/0.3968, allocations: 0.5256 MB / 1.336 GB, free: 7.953 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3968, allocations: 0 / 1.336 GB, free: 7.953 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.311e-05/0.3969, allocations: 23.92 kB / 1.336 GB, free: 7.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3969, allocations: 0 / 1.336 GB, free: 7.93 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.3969, allocations: 4 kB / 1.336 GB, free: 7.926 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3969, allocations: 4 kB / 1.336 GB, free: 7.922 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3969, allocations: 0 / 1.336 GB, free: 7.922 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.3973, allocations: 309.2 kB / 1.336 GB, free: 7.605 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.19e-05/0.3973, allocations: 19.89 kB / 1.336 GB, free: 7.586 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.3974, allocations: 7.984 kB / 1.336 GB, free: 7.578 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.044e-05/0.3974, allocations: 4 kB / 1.336 GB, free: 7.574 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.825e-05/0.3975, allocations: 31.95 kB / 1.336 GB, free: 7.543 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.3975, allocations: 4 kB / 1.336 GB, free: 7.539 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.448e-05/0.3976, allocations: 108.6 kB / 1.336 GB, free: 7.434 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3976, allocations: 0 / 1.336 GB, free: 7.434 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003272/0.3979, allocations: 67.84 kB / 1.336 GB, free: 7.367 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.0001612/0.3981, allocations: 118.9 kB / 1.336 GB, free: 7.238 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004948/0.3986, allocations: 309.7 kB / 1.337 GB, free: 6.918 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3986, allocations: 0 / 1.337 GB, free: 6.918 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.3988, allocations: 83.84 kB / 1.337 GB, free: 6.836 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.3991, allocations: 42.59 kB / 1.337 GB, free: 6.797 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006891/0.3998, allocations: 402.6 kB / 1.337 GB, free: 6.375 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.3999, allocations: 133.6 kB / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.172e-05/0.4, allocations: 23.44 kB / 1.337 GB, free: 6.195 MB / 1.029 GB Notification: Performance of SimCode: time 2.8e-07/0.4, allocations: 0 / 1.337 GB, free: 6.195 MB / 1.029 GB Notification: Performance of Templates: time 0.005288/0.4053, allocations: 2.966 MB / 1.34 GB, free: 3.242 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 -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: 11.417899254243821]