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.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.001196/0.001196, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001314/0.001314, allocations: 223.6 kB / 23.01 MB, free: 4.609 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.338/1.338, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.89/2.89, allocations: 0.505 GB / 0.8108 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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: 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.001929/0.001929, allocations: 61.69 kB / 1.178 GB, free: 16.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3077, allocations: 180.2 MB / 1.354 GB, free: 7.949 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002907/0.3106, allocations: 1.795 MB / 1.356 GB, free: 6.145 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.3119, allocations: 0.7135 MB / 1.357 GB, free: 5.43 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.035e-05/0.312, allocations: 7.938 kB / 1.357 GB, free: 5.422 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.3121, allocations: 31.67 kB / 1.357 GB, free: 5.391 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.288e-05/0.3122, allocations: 23.73 kB / 1.357 GB, free: 5.367 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006564/0.3128, allocations: 274.7 kB / 1.357 GB, free: 5.102 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000474/0.3133, allocations: 407.4 kB / 1.357 GB, free: 4.703 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.3136, allocations: 179.2 kB / 1.357 GB, free: 4.523 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.3137, allocations: 143.6 kB / 1.358 GB, free: 4.383 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.3139, allocations: 131.5 kB / 1.358 GB, free: 4.254 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.159e-05/0.314, allocations: 40 kB / 1.358 GB, free: 4.215 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.3141, allocations: 63.98 kB / 1.358 GB, free: 4.152 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.986e-05/0.3141, allocations: 67.83 kB / 1.358 GB, free: 4.086 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.3143, allocations: 147.4 kB / 1.358 GB, free: 3.941 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004519/0.3147, allocations: 422.5 kB / 1.358 GB, free: 3.527 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3147, allocations: 0 / 1.358 GB, free: 3.527 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3147, allocations: 0 / 1.358 GB, free: 3.527 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.3147, allocations: 0 / 1.358 GB, free: 3.527 MB / 1.045 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.0007565/0.3155, allocations: 490.6 kB / 1.359 GB, free: 3.012 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.3155, allocations: 8.031 kB / 1.359 GB, free: 3.004 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002613/0.3158, allocations: 48.66 kB / 1.359 GB, free: 2.957 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.3161, allocations: 206.2 kB / 1.359 GB, free: 2.73 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.3162, allocations: 28.88 kB / 1.359 GB, free: 2.703 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/0.3162, allocations: 28.38 kB / 1.359 GB, free: 2.676 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004438/0.3167, allocations: 271.3 kB / 1.359 GB, free: 2.398 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3167, allocations: 192 / 1.359 GB, free: 2.398 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.61e-05/0.3167, allocations: 11.94 kB / 1.359 GB, free: 2.387 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.3167, allocations: 8 kB / 1.359 GB, free: 2.379 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003246/0.317, allocations: 181.9 kB / 1.36 GB, free: 2.203 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.3181, allocations: 0.8191 MB / 1.36 GB, free: 1.336 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.3184, allocations: 158.7 kB / 1.361 GB, free: 1.172 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.3186, allocations: 72.92 kB / 1.361 GB, free: 1.098 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.3186, allocations: 12 kB / 1.361 GB, free: 1.086 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002189/0.3188, allocations: 138.4 kB / 1.361 GB, free: 0.9375 MB / 1.045 GB Notification: Performance of pre-optimization done (n=27): time 1.422e-06/0.3188, allocations: 0 / 1.361 GB, free: 0.9375 MB / 1.045 GB Notification: Performance of matching and sorting (n=27): time 0.0004782/0.3193, allocations: 271.5 kB / 1.361 GB, free: 0.668 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/0.3193, allocations: 63.39 kB / 1.361 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.3195, allocations: 167.3 kB / 1.361 GB, free: 432 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.3195, allocations: 37.7 kB / 1.361 GB, free: 388 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.3196, allocations: 136.9 kB / 1.361 GB, free: 244 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.197e-05/0.3197, allocations: 79.41 kB / 1.361 GB, free: 164 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3198, allocations: 89.67 kB / 1.362 GB, free: 68 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.32, allocations: 330.8 kB / 1.362 GB, free: 15.73 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.3202, allocations: 91.95 kB / 1.362 GB, free: 15.64 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/0.3204, allocations: 166.9 kB / 1.362 GB, free: 15.45 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/0.3207, allocations: 249.4 kB / 1.362 GB, free: 15.18 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3207, allocations: 0 / 1.362 GB, free: 15.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005535/0.3213, allocations: 360.2 kB / 1.363 GB, free: 14.82 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.3213, allocations: 37.62 kB / 1.363 GB, free: 14.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.3213, allocations: 4 kB / 1.363 GB, free: 14.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.3214, allocations: 7.984 kB / 1.363 GB, free: 14.76 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.3215, allocations: 32.14 kB / 1.363 GB, free: 14.73 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.567e-06/0.3215, allocations: 8 kB / 1.363 GB, free: 14.72 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.3217, allocations: 47.75 kB / 1.363 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.3218, allocations: 19.98 kB / 1.363 GB, free: 14.66 MB / 1.061 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.0001686/0.3219, allocations: 170.3 kB / 1.363 GB, free: 14.48 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.322, allocations: 23.83 kB / 1.363 GB, free: 14.46 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.013e-05/0.322, allocations: 25.97 kB / 1.363 GB, free: 14.43 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.322, allocations: 0 / 1.363 GB, free: 14.43 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.322, allocations: 4 kB / 1.363 GB, free: 14.43 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.322, allocations: 4 kB / 1.363 GB, free: 14.43 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007953/0.3228, allocations: 0.599 MB / 1.364 GB, free: 13.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3228, allocations: 7.922 kB / 1.364 GB, free: 13.77 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.25e-05/0.3229, allocations: 12 kB / 1.364 GB, free: 13.75 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.3229, allocations: 4 kB / 1.364 GB, free: 13.75 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.3229, allocations: 8 kB / 1.364 GB, free: 13.74 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.3229, allocations: 7.984 kB / 1.364 GB, free: 13.73 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3229, allocations: 0 / 1.364 GB, free: 13.73 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003411/0.3233, allocations: 305.2 kB / 1.364 GB, free: 13.42 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.3233, allocations: 19.84 kB / 1.364 GB, free: 13.4 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.277e-05/0.3233, allocations: 4 kB / 1.364 GB, free: 13.4 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.015e-05/0.3234, allocations: 7.984 kB / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.3235, allocations: 27.97 kB / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3235, allocations: 11.98 kB / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.793e-05/0.3236, allocations: 106.9 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3236, allocations: 0 / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000297/0.3239, allocations: 59.89 kB / 1.364 GB, free: 13.19 MB / 1.061 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.0001609/0.324, allocations: 130.8 kB / 1.364 GB, free: 13.05 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004447/0.3245, allocations: 280.2 kB / 1.365 GB, free: 12.77 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3245, allocations: 0 / 1.365 GB, free: 12.77 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.3246, allocations: 79.91 kB / 1.365 GB, free: 12.69 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.3249, allocations: 31.89 kB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006489/0.3256, allocations: 402.5 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.3259, allocations: 0.7403 MB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.908e-05/0.326, allocations: 23.44 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/0.326, allocations: 0 / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of Templates: time 0.004834/0.3308, allocations: 2.938 MB / 1.369 GB, free: 8.512 MB / 1.061 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 -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/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: 10.072108564985683]