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.0008245/0.0008245, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007913/0.0007913, allocations: 177.9 kB / 23.21 MB, free: 1.344 MB / 18.57 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 0.8704/0.8704, allocations: 177.1 MB / 203.5 MB, free: 5.707 MB / 186.7 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 1.726/1.726, allocations: 389 MB / 0.6338 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.545e-05/1.68e-05, allocations: 8.953 kB / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.001806/0.001823, allocations: 1.748 MB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0008078/0.002631, allocations: 0.7008 MB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.612e-05/0.002707, allocations: 7.938 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.002815, allocations: 27.69 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.799e-05/0.002863, allocations: 27.72 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.003355, allocations: 261.8 kB / 1.004 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.003671, allocations: 415.3 kB / 1.004 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.003871, allocations: 175.3 kB / 1.004 GB, free: 9.645 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.004088, allocations: 211.6 kB / 1.004 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.004209, allocations: 99.72 kB / 1.004 GB, free: 9.34 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.004242, allocations: 36 kB / 1.004 GB, free: 9.305 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.368e-05/0.004316, allocations: 55.98 kB / 1.005 GB, free: 9.25 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.199e-05/0.004368, allocations: 75.8 kB / 1.005 GB, free: 9.176 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.474e-05/0.004453, allocations: 103.7 kB / 1.005 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000321/0.004774, allocations: 438.8 kB / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.004775, allocations: 0 / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of FrontEnd: time 6.61e-07/0.004776, allocations: 0 / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.00478, allocations: 4 kB / 1.005 GB, free: 8.641 MB / 0.9636 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.0005369/0.005317, allocations: 494.6 kB / 1.006 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.005348, allocations: 13.34 kB / 1.006 GB, free: 8.102 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.005521, allocations: 44.7 kB / 1.006 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.005753, allocations: 201.5 kB / 1.006 GB, free: 7.836 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.00578, allocations: 20.88 kB / 1.006 GB, free: 7.812 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.005812, allocations: 32.38 kB / 1.006 GB, free: 7.781 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.006109, allocations: 271.3 kB / 1.006 GB, free: 7.508 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.006121, allocations: 8.125 kB / 1.006 GB, free: 7.5 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.006138, allocations: 16.36 kB / 1.006 GB, free: 7.484 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.006144, allocations: 8.375 kB / 1.006 GB, free: 7.477 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.006353, allocations: 181.8 kB / 1.006 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000679/0.007032, allocations: 0.6948 MB / 1.007 GB, free: 6.57 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.007231, allocations: 158.8 kB / 1.007 GB, free: 6.406 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.943e-05/0.007311, allocations: 76.83 kB / 1.007 GB, free: 6.328 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.007328, allocations: 4 kB / 1.007 GB, free: 6.324 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/0.007492, allocations: 157 kB / 1.007 GB, free: 6.156 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=27): time 1.453e-06/0.007493, allocations: 4 kB / 1.007 GB, free: 6.152 MB / 0.9636 GB Notification: Performance of matching and sorting (n=27): time 0.0003331/0.007826, allocations: 267.6 kB / 1.008 GB, free: 5.887 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.007856, allocations: 55.41 kB / 1.008 GB, free: 5.82 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.705e-05/0.007943, allocations: 163.4 kB / 1.008 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.007971, allocations: 41.7 kB / 1.008 GB, free: 5.605 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.008037, allocations: 148.7 kB / 1.008 GB, free: 5.457 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.561e-05/0.008073, allocations: 67.48 kB / 1.008 GB, free: 5.391 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.07e-05/0.008154, allocations: 85.67 kB / 1.008 GB, free: 5.301 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.338e-05/0.008227, allocations: 330.8 kB / 1.009 GB, free: 4.969 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.008364, allocations: 125.7 kB / 1.009 GB, free: 4.84 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.008517, allocations: 196.5 kB / 1.009 GB, free: 4.613 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.008729, allocations: 258.9 kB / 1.009 GB, free: 4.332 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.008731, allocations: 0 / 1.009 GB, free: 4.332 MB / 0.9636 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003507/0.009082, allocations: 386 kB / 1.009 GB, free: 3.938 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.00911, allocations: 43.25 kB / 1.009 GB, free: 3.891 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.009115, allocations: 0 / 1.009 GB, free: 3.891 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.009126, allocations: 4 kB / 1.009 GB, free: 3.887 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.011e-05/0.009207, allocations: 27.92 kB / 1.01 GB, free: 3.859 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.009213, allocations: 7.938 kB / 1.01 GB, free: 3.852 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.009344, allocations: 55.75 kB / 1.01 GB, free: 3.797 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.009364, allocations: 15.98 kB / 1.01 GB, free: 3.781 MB / 0.9636 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.0001044/0.009468, allocations: 173.9 kB / 1.01 GB, free: 3.602 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.398e-05/0.009482, allocations: 15.91 kB / 1.01 GB, free: 3.586 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.21e-05/0.009514, allocations: 21.97 kB / 1.01 GB, free: 3.559 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.009517, allocations: 4 kB / 1.01 GB, free: 3.555 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.009522, allocations: 3.938 kB / 1.01 GB, free: 3.551 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.009525, allocations: 0 / 1.01 GB, free: 3.551 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.009965, allocations: 0.5188 MB / 1.01 GB, free: 2.992 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.009966, allocations: 4 kB / 1.01 GB, free: 2.988 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.771e-05/0.01, allocations: 19.92 kB / 1.01 GB, free: 2.969 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.01001, allocations: 7.938 kB / 1.01 GB, free: 2.961 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.01002, allocations: 4 kB / 1.01 GB, free: 2.957 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.01002, allocations: 0 / 1.01 GB, free: 2.957 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.01002, allocations: 0 / 1.01 GB, free: 2.957 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.01022, allocations: 312.3 kB / 1.011 GB, free: 2.637 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.381e-05/0.01024, allocations: 19.78 kB / 1.011 GB, free: 2.617 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.01025, allocations: 15.92 kB / 1.011 GB, free: 2.602 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.259e-05/0.01031, allocations: 8 kB / 1.011 GB, free: 2.594 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.01036, allocations: 23.95 kB / 1.011 GB, free: 2.57 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.01037, allocations: 16 kB / 1.011 GB, free: 2.555 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.95e-05/0.01041, allocations: 99.17 kB / 1.011 GB, free: 2.457 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.01041, allocations: 3.938 kB / 1.011 GB, free: 2.453 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002024/0.01061, allocations: 71.83 kB / 1.011 GB, free: 2.383 MB / 0.9636 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.0001049/0.01072, allocations: 119.2 kB / 1.011 GB, free: 2.258 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003663/0.01108, allocations: 301.8 kB / 1.011 GB, free: 1.945 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.01108, allocations: 4.125 kB / 1.011 GB, free: 1.941 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.589e-05/0.01117, allocations: 83.89 kB / 1.011 GB, free: 1.859 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.01138, allocations: 38.3 kB / 1.011 GB, free: 1.824 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004255/0.01181, allocations: 409 kB / 1.012 GB, free: 1.395 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.356e-05/0.01188, allocations: 129.6 kB / 1.012 GB, free: 1.25 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.01192, allocations: 24.5 kB / 1.012 GB, free: 1.227 MB / 0.9636 GB Notification: Performance of SimCode: time 2.91e-07/0.01192, allocations: 0 / 1.012 GB, free: 1.227 MB / 0.9636 GB Notification: Performance of Templates: time 0.002947/0.01487, allocations: 2.965 MB / 1.015 GB, free: 14.27 MB / 0.9792 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/jenkins/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: 6.330337205901742]