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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 111.7 kB / 18.88 MB, free: 2.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 202.3 kB / 22.17 MB, free: 5.18 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 225.6 MB / 250.9 MB, free: 13.24 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.928/2.928, allocations: 497.2 MB / 0.7845 GB, free: 33.51 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001841/0.001841, allocations: 65.92 kB / 1.139 GB, free: 33.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3173, allocations: 173.9 MB / 1.309 GB, free: 15.93 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002966/0.3202, allocations: 1.784 MB / 1.311 GB, free: 14.13 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.3214, allocations: 0.6896 MB / 1.312 GB, free: 13.44 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.929e-05/0.3215, allocations: 4 kB / 1.312 GB, free: 13.43 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.3216, allocations: 31.67 kB / 1.312 GB, free: 13.4 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.735e-05/0.3217, allocations: 23.75 kB / 1.312 GB, free: 13.38 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007186/0.3224, allocations: 262.1 kB / 1.312 GB, free: 13.12 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004547/0.3229, allocations: 399.4 kB / 1.312 GB, free: 12.73 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.3232, allocations: 182.9 kB / 1.313 GB, free: 12.55 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.3233, allocations: 135.7 kB / 1.313 GB, free: 12.42 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.3235, allocations: 135.4 kB / 1.313 GB, free: 12.29 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.08e-05/0.3236, allocations: 44 kB / 1.313 GB, free: 12.24 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3237, allocations: 67.98 kB / 1.313 GB, free: 12.18 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.603e-05/0.3238, allocations: 67.81 kB / 1.313 GB, free: 12.11 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.3239, allocations: 143.4 kB / 1.313 GB, free: 11.97 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.3244, allocations: 418.6 kB / 1.313 GB, free: 11.56 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3244, allocations: 0 / 1.313 GB, free: 11.56 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3244, allocations: 3.938 kB / 1.313 GB, free: 11.55 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.3244, allocations: 0 / 1.313 GB, free: 11.55 MB / 1.014 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.0008103/0.3252, allocations: 0.5545 MB / 1.314 GB, free: 10.95 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3252, allocations: 12.03 kB / 1.314 GB, free: 10.93 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.88e-05/0.3253, allocations: 28.8 kB / 1.314 GB, free: 10.91 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.3256, allocations: 266.9 kB / 1.314 GB, free: 10.61 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.3257, allocations: 24.88 kB / 1.314 GB, free: 10.58 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.167e-05/0.3257, allocations: 32.38 kB / 1.314 GB, free: 10.55 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004407/0.3262, allocations: 268.2 kB / 1.315 GB, free: 10.28 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3262, allocations: 192 / 1.315 GB, free: 10.28 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.3262, allocations: 19.92 kB / 1.315 GB, free: 10.26 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3262, allocations: 12 kB / 1.315 GB, free: 10.25 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003343/0.3265, allocations: 190.1 kB / 1.315 GB, free: 10.06 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.3277, allocations: 0.8503 MB / 1.316 GB, free: 9.156 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.328, allocations: 162.7 kB / 1.316 GB, free: 8.988 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.3282, allocations: 80.83 kB / 1.316 GB, free: 8.906 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3282, allocations: 0 / 1.316 GB, free: 8.906 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.3284, allocations: 150.7 kB / 1.316 GB, free: 8.746 MB / 1.014 GB Notification: Performance of pre-optimization done (n=27): time 1.513e-06/0.3284, allocations: 0 / 1.316 GB, free: 8.746 MB / 1.014 GB Notification: Performance of matching and sorting (n=27): time 0.000533/0.3289, allocations: 275.5 kB / 1.316 GB, free: 8.473 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.329, allocations: 63.41 kB / 1.316 GB, free: 8.398 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.3291, allocations: 159.3 kB / 1.317 GB, free: 8.234 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.3292, allocations: 41.69 kB / 1.317 GB, free: 8.188 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.3293, allocations: 144.8 kB / 1.317 GB, free: 8.043 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.286e-05/0.3293, allocations: 71.47 kB / 1.317 GB, free: 7.973 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.3295, allocations: 89.67 kB / 1.317 GB, free: 7.879 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001974/0.3297, allocations: 326.8 kB / 1.317 GB, free: 7.551 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.3299, allocations: 91.95 kB / 1.317 GB, free: 7.461 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.3301, allocations: 178.8 kB / 1.317 GB, free: 7.258 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.3305, allocations: 238.9 kB / 1.318 GB, free: 6.996 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3305, allocations: 3.938 kB / 1.318 GB, free: 6.992 MB / 1.014 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000571/0.331, allocations: 360.2 kB / 1.318 GB, free: 6.629 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.3311, allocations: 41.62 kB / 1.318 GB, free: 6.582 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3311, allocations: 4.219 kB / 1.318 GB, free: 6.578 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3311, allocations: 4 kB / 1.318 GB, free: 6.574 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.3312, allocations: 35.92 kB / 1.318 GB, free: 6.539 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.547e-06/0.3312, allocations: 7.938 kB / 1.318 GB, free: 6.531 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.3315, allocations: 47.81 kB / 1.318 GB, free: 6.484 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.3315, allocations: 19.98 kB / 1.318 GB, free: 6.465 MB / 1.014 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.0001713/0.3317, allocations: 177.7 kB / 1.318 GB, free: 6.285 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.3317, allocations: 19.84 kB / 1.318 GB, free: 6.266 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003935/0.3321, allocations: 225 kB / 1.319 GB, free: 6.039 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3321, allocations: 4 kB / 1.319 GB, free: 6.035 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.3321, allocations: 0 / 1.319 GB, free: 6.035 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.3321, allocations: 3.984 kB / 1.319 GB, free: 6.031 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008783/0.333, allocations: 0.6511 MB / 1.319 GB, free: 5.324 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.333, allocations: 7.938 kB / 1.319 GB, free: 5.316 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.828e-05/0.3331, allocations: 19.92 kB / 1.319 GB, free: 5.297 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3331, allocations: 0 / 1.319 GB, free: 5.297 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.3331, allocations: 8 kB / 1.319 GB, free: 5.289 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3331, allocations: 0 / 1.319 GB, free: 5.289 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3331, allocations: 0 / 1.319 GB, free: 5.289 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003738/0.3335, allocations: 316.1 kB / 1.32 GB, free: 4.965 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.879e-05/0.3336, allocations: 89.02 kB / 1.32 GB, free: 4.859 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.3336, allocations: 12 kB / 1.32 GB, free: 4.848 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.258e-05/0.3337, allocations: 8 kB / 1.32 GB, free: 4.84 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.669e-05/0.3338, allocations: 31.95 kB / 1.32 GB, free: 4.809 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.3338, allocations: 4 kB / 1.32 GB, free: 4.805 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.198e-05/0.3339, allocations: 105.1 kB / 1.32 GB, free: 4.703 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3339, allocations: 0 / 1.32 GB, free: 4.703 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003134/0.3342, allocations: 71.78 kB / 1.32 GB, free: 4.633 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$cse1,$cse2,$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 (29): * Single equations (assignments): 24 * 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.0001648/0.3343, allocations: 124.9 kB / 1.32 GB, free: 4.504 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004617/0.3348, allocations: 283.8 kB / 1.32 GB, free: 4.215 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3348, allocations: 0 / 1.32 GB, free: 4.215 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.3349, allocations: 88.39 kB / 1.32 GB, free: 4.129 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.3353, allocations: 47.89 kB / 1.32 GB, free: 4.082 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006588/0.3359, allocations: 401.6 kB / 1.321 GB, free: 3.668 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.3363, allocations: 0.7399 MB / 1.321 GB, free: 2.902 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.094e-05/0.3364, allocations: 33.92 kB / 1.322 GB, free: 2.867 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.3365, allocations: 27.44 kB / 1.322 GB, free: 2.84 MB / 1.014 GB Notification: Performance of SimCode: time 2.91e-07/0.3365, allocations: 0 / 1.322 GB, free: 2.84 MB / 1.014 GB Notification: Performance of Templates: time 0.006454/0.3429, allocations: 2.946 MB / 1.324 GB, free: 15.91 MB / 1.029 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.026277067139745]