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.001498/0.001498, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001608/0.001608, allocations: 213.1 kB / 22.24 MB, free: 5.258 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.593/1.593, allocations: 230.6 MB / 256 MB, free: 7.793 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.448/3.448, allocations: 0.4892 GB / 0.7943 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.002158/0.002158, allocations: 71.48 kB / 1.154 GB, free: 25.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4701/0.4723, allocations: 176.1 MB / 1.326 GB, free: 1.91 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.004035/0.4763, allocations: 1.765 MB / 1.327 GB, free: 140 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.478, allocations: 0.678 MB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.4782, allocations: 7.938 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.4784, allocations: 27.67 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.4785, allocations: 35.72 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.4796, allocations: 263.4 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0007381/0.4803, allocations: 407.3 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004458/0.4808, allocations: 176.5 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.481, allocations: 139.6 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.4813, allocations: 119.5 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.615e-05/0.4814, allocations: 40 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.4815, allocations: 55.98 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.4817, allocations: 79.75 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.4818, allocations: 123.4 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007009/0.4825, allocations: 414.6 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4825, allocations: 0 / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.833e-06/0.4825, allocations: 0 / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.4826, allocations: 0 / 1.33 GB, free: 13.61 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.001163/0.4837, allocations: 490.6 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4838, allocations: 16.03 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003547/0.4841, allocations: 36.78 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005046/0.4846, allocations: 198.2 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.4847, allocations: 28.86 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.578e-05/0.4847, allocations: 36.31 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.4853, allocations: 263.3 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.4853, allocations: 4.188 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.4853, allocations: 11.94 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.4853, allocations: 8 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003698/0.4857, allocations: 177.9 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.487, allocations: 0.6987 MB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.4873, allocations: 162.8 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.4875, allocations: 76.88 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.4875, allocations: 4 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.4878, allocations: 141.9 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 2.574e-06/0.4878, allocations: 3.938 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0006007/0.4884, allocations: 279.5 kB / 1.332 GB, free: 10.87 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.4884, allocations: 55.41 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.4886, allocations: 167.2 kB / 1.332 GB, free: 10.63 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.882e-05/0.4887, allocations: 41.7 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.4888, allocations: 140.8 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.608e-05/0.4889, allocations: 75.42 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.4891, allocations: 85.67 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001912/0.4893, allocations: 326.8 kB / 1.333 GB, free: 9.953 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.4895, allocations: 125.7 kB / 1.333 GB, free: 9.824 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.4898, allocations: 205.2 kB / 1.333 GB, free: 9.59 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.4902, allocations: 248.8 kB / 1.334 GB, free: 9.316 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4902, allocations: 0 / 1.334 GB, free: 9.316 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006937/0.4909, allocations: 385.8 kB / 1.334 GB, free: 8.922 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/0.491, allocations: 33.7 kB / 1.334 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/0.491, allocations: 12.14 kB / 1.334 GB, free: 8.871 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.491, allocations: 4 kB / 1.334 GB, free: 8.867 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.4912, allocations: 31.92 kB / 1.334 GB, free: 8.836 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.4912, allocations: 4 kB / 1.334 GB, free: 8.832 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000264/0.4914, allocations: 47.81 kB / 1.334 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.4915, allocations: 23.88 kB / 1.334 GB, free: 8.762 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.0002175/0.4917, allocations: 178.2 kB / 1.334 GB, free: 8.582 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.349e-05/0.4917, allocations: 15.91 kB / 1.334 GB, free: 8.566 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.907e-05/0.4918, allocations: 25.89 kB / 1.334 GB, free: 8.539 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.4918, allocations: 4 kB / 1.334 GB, free: 8.535 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4918, allocations: 0 / 1.334 GB, free: 8.535 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.4918, allocations: 0 / 1.334 GB, free: 8.535 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009046/0.4927, allocations: 0.5295 MB / 1.335 GB, free: 7.965 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.4927, allocations: 0 / 1.335 GB, free: 7.965 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.673e-05/0.4928, allocations: 12 kB / 1.335 GB, free: 7.953 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.4928, allocations: 4 kB / 1.335 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.4928, allocations: 11.98 kB / 1.335 GB, free: 7.938 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.4928, allocations: 3.938 kB / 1.335 GB, free: 7.934 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4928, allocations: 0 / 1.335 GB, free: 7.934 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000431/0.4933, allocations: 305.3 kB / 1.335 GB, free: 7.621 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.4933, allocations: 19.84 kB / 1.335 GB, free: 7.602 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.4934, allocations: 7.938 kB / 1.335 GB, free: 7.594 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.941e-05/0.4935, allocations: 11.98 kB / 1.335 GB, free: 7.582 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.4936, allocations: 23.97 kB / 1.335 GB, free: 7.559 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.4936, allocations: 11.98 kB / 1.335 GB, free: 7.547 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001027/0.4937, allocations: 100.6 kB / 1.335 GB, free: 7.449 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4937, allocations: 0 / 1.335 GB, free: 7.449 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003861/0.4941, allocations: 71.84 kB / 1.335 GB, free: 7.379 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.0002593/0.4943, allocations: 130.9 kB / 1.336 GB, free: 7.238 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006333/0.495, allocations: 305.7 kB / 1.336 GB, free: 6.922 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.495, allocations: 0 / 1.336 GB, free: 6.922 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.4952, allocations: 87.89 kB / 1.336 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.0003889/0.4955, allocations: 32.36 kB / 1.336 GB, free: 6.805 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009601/0.4965, allocations: 380.8 kB / 1.336 GB, free: 6.41 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.4967, allocations: 125.6 kB / 1.336 GB, free: 6.262 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001081/0.4968, allocations: 25.94 kB / 1.336 GB, free: 6.238 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.4969, allocations: 27.44 kB / 1.337 GB, free: 6.211 MB / 1.029 GB Notification: Performance of SimCode: time 3.7e-07/0.4969, allocations: 0 / 1.337 GB, free: 6.211 MB / 1.029 GB Notification: Performance of Templates: time 0.008701/0.5056, allocations: 2.872 MB / 1.339 GB, free: 3.387 MB / 1.029 GB " [Timeout remaining time 299] 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/jenkins/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: 10.05789409764111]