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.001352/0.001352, allocations: 104.2 kB / 19.74 MB, free: 2.07 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.001438/0.001438, allocations: 214.6 kB / 23.04 MB, free: 4.867 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.435/1.435, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.234/3.234, allocations: 0.49 GB / 0.7959 GB, free: 35.47 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.002046/0.002046, allocations: 67.47 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.3874, allocations: 176.1 MB / 1.327 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003504/0.3909, allocations: 1.764 MB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001415/0.3923, allocations: 0.6857 MB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.3924, allocations: 7.938 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.3925, allocations: 35.67 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.457e-05/0.3926, allocations: 27.72 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.3934, allocations: 252.5 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005256/0.3939, allocations: 407.4 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003542/0.3942, allocations: 171.3 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.3944, allocations: 147.5 kB / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.3946, allocations: 119.5 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.3947, allocations: 36 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.3948, allocations: 55.92 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.511e-05/0.3949, allocations: 75.81 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.395, allocations: 115.6 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005199/0.3955, allocations: 422.5 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3955, allocations: 0 / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3955, allocations: 0 / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.3955, allocations: 0 / 1.331 GB, free: 12.69 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.0008151/0.3963, allocations: 494.6 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3964, allocations: 8.031 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.3967, allocations: 40.78 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.397, allocations: 202.2 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.3971, allocations: 24.88 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.3971, allocations: 28.38 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.3976, allocations: 275.2 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3976, allocations: 192 / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.3976, allocations: 15.94 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.3977, allocations: 11.98 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/0.398, allocations: 185.9 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.3991, allocations: 0.6909 MB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.3994, allocations: 156.5 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.3995, allocations: 80.83 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.3995, allocations: 0 / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000243/0.3998, allocations: 141.9 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.3998, allocations: 0 / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005164/0.4003, allocations: 280.2 kB / 1.334 GB, free: 9.961 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.4004, allocations: 59.41 kB / 1.334 GB, free: 9.891 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.4005, allocations: 159.4 kB / 1.334 GB, free: 9.727 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.596e-05/0.4006, allocations: 49.69 kB / 1.334 GB, free: 9.672 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.4007, allocations: 136.8 kB / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.035e-05/0.4007, allocations: 67.44 kB / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.4009, allocations: 93.67 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4011, allocations: 330.8 kB / 1.335 GB, free: 9.039 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.4013, allocations: 125.7 kB / 1.335 GB, free: 8.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.4015, allocations: 197.2 kB / 1.335 GB, free: 8.684 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003382/0.4019, allocations: 248.8 kB / 1.335 GB, free: 8.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.4019, allocations: 4 kB / 1.335 GB, free: 8.406 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006011/0.4025, allocations: 394 kB / 1.336 GB, free: 8.004 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.488e-05/0.4025, allocations: 37.73 kB / 1.336 GB, free: 7.961 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.4025, allocations: 7.938 kB / 1.336 GB, free: 7.953 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.4026, allocations: 4 kB / 1.336 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.4027, allocations: 27.92 kB / 1.336 GB, free: 7.922 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.4027, allocations: 7.938 kB / 1.336 GB, free: 7.914 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.4029, allocations: 51.8 kB / 1.336 GB, free: 7.863 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.403, allocations: 12 kB / 1.336 GB, free: 7.852 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.0001908/0.4032, allocations: 182.2 kB / 1.336 GB, free: 7.668 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.4032, allocations: 15.91 kB / 1.336 GB, free: 7.652 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.694e-05/0.4033, allocations: 29.91 kB / 1.336 GB, free: 7.621 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.4033, allocations: 0 / 1.336 GB, free: 7.621 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4033, allocations: 4 kB / 1.336 GB, free: 7.617 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.4033, allocations: 3.984 kB / 1.336 GB, free: 7.613 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007711/0.404, allocations: 0.5178 MB / 1.337 GB, free: 7.055 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.404, allocations: 4 kB / 1.337 GB, free: 7.051 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.917e-05/0.4041, allocations: 15.98 kB / 1.337 GB, free: 7.035 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.4041, allocations: 4 kB / 1.337 GB, free: 7.031 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.4041, allocations: 4 kB / 1.337 GB, free: 7.027 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4041, allocations: 4 kB / 1.337 GB, free: 7.023 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4041, allocations: 3.938 kB / 1.337 GB, free: 7.02 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003605/0.4045, allocations: 309.3 kB / 1.337 GB, free: 6.703 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.601e-05/0.4045, allocations: 19.84 kB / 1.337 GB, free: 6.684 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.4046, allocations: 8 kB / 1.337 GB, free: 6.676 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.678e-05/0.4046, allocations: 4 kB / 1.337 GB, free: 6.672 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.294e-05/0.4047, allocations: 27.95 kB / 1.337 GB, free: 6.645 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.4047, allocations: 8 kB / 1.337 GB, free: 6.637 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.907e-05/0.4048, allocations: 116.7 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4048, allocations: 0 / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003341/0.4052, allocations: 63.84 kB / 1.337 GB, free: 6.461 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.0001666/0.4053, allocations: 114.9 kB / 1.337 GB, free: 6.336 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004889/0.4058, allocations: 305.5 kB / 1.337 GB, free: 6.02 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4058, allocations: 448 / 1.337 GB, free: 6.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.406, allocations: 88.11 kB / 1.338 GB, free: 5.934 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.4063, allocations: 45.61 kB / 1.338 GB, free: 5.891 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007231/0.407, allocations: 406.5 kB / 1.338 GB, free: 5.465 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.4072, allocations: 129.6 kB / 1.338 GB, free: 5.316 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.449e-05/0.4072, allocations: 27.44 kB / 1.338 GB, free: 5.289 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.4072, allocations: 0 / 1.338 GB, free: 5.289 MB / 1.029 GB Notification: Performance of Templates: time 0.005478/0.4127, allocations: 2.971 MB / 1.341 GB, free: 2.324 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.195795216830447]