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.001774/0.001774, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.002319/0.002319, allocations: 169 kB / 23.02 MB, free: 1.547 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 1.068/1.068, allocations: 177.1 MB / 203.4 MB, free: 5.594 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 2.245/2.245, allocations: 429.5 MB / 0.6732 GB, free: 4.027 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.8781 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.915e-05/3.072e-05, allocations: 6.312 kB / 0.8781 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00253/0.002561, allocations: 1.835 MB / 0.8799 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.003672, allocations: 0.7065 MB / 0.8806 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.003796, allocations: 4 kB / 0.8806 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.003947, allocations: 27.67 kB / 0.8807 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.284e-05/0.00402, allocations: 27.73 kB / 0.8807 GB, free: 3.734 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007588/0.004779, allocations: 265.3 kB / 0.8809 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0004513/0.00523, allocations: 411.4 kB / 0.8813 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.005517, allocations: 208.7 kB / 0.8815 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.005689, allocations: 207.7 kB / 0.8817 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.005841, allocations: 103.7 kB / 0.8818 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.972e-05/0.005881, allocations: 36.88 kB / 0.8819 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.85e-05/0.005969, allocations: 55.98 kB / 0.8819 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.006029, allocations: 73.33 kB / 0.882 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.971e-05/0.006118, allocations: 107.7 kB / 0.8821 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003267/0.006445, allocations: 279 kB / 0.8824 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.006448, allocations: 0 / 0.8824 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/0.006449, allocations: 1.406 kB / 0.8824 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.006454, allocations: 0 / 0.8824 GB, free: 2.023 MB / 0.8386 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.0006838/0.007138, allocations: 0.5791 MB / 0.8829 GB, free: 1.398 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.007173, allocations: 12.03 kB / 0.8829 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.007394, allocations: 60.77 kB / 0.883 GB, free: 1.328 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.007659, allocations: 216.2 kB / 0.8832 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.007694, allocations: 20.88 kB / 0.8832 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.00773, allocations: 32.38 kB / 0.8832 GB, free: 1.039 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.008309, allocations: 225.6 kB / 0.8835 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.008319, allocations: 192 / 0.8835 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.00834, allocations: 12.38 kB / 0.8835 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.008351, allocations: 8.312 kB / 0.8835 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.008509, allocations: 102.9 kB / 0.8836 GB, free: 0.6836 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008167/0.009326, allocations: 0.7905 MB / 0.8844 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.009528, allocations: 131.3 kB / 0.8845 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.526e-05/0.009603, allocations: 63.52 kB / 0.8845 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.009621, allocations: 4 kB / 0.8845 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.00977, allocations: 124 kB / 0.8847 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=27): time 2.204e-06/0.009772, allocations: 0 / 0.8847 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=27): time 0.0003295/0.0101, allocations: 229.2 kB / 0.8849 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.01013, allocations: 55.41 kB / 0.8849 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.01026, allocations: 232.2 kB / 0.8852 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.01029, allocations: 41.7 kB / 0.8852 GB, free: 14.92 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.686e-05/0.01037, allocations: 187.5 kB / 0.8854 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.01041, allocations: 67.48 kB / 0.8854 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.01051, allocations: 99.33 kB / 0.8855 GB, free: 14.56 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.01063, allocations: 0.4962 MB / 0.886 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.01076, allocations: 97.64 kB / 0.8861 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.01091, allocations: 183.4 kB / 0.8863 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.01111, allocations: 210.3 kB / 0.8865 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.01111, allocations: 4 kB / 0.8865 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003583/0.01147, allocations: 345.9 kB / 0.8868 GB, free: 13.13 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.0115, allocations: 33.69 kB / 0.8869 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.01151, allocations: 4.219 kB / 0.8869 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.01153, allocations: 8 kB / 0.8869 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.807e-05/0.01162, allocations: 31.92 kB / 0.8869 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.01163, allocations: 11.88 kB / 0.8869 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.01175, allocations: 47.75 kB / 0.8869 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.01177, allocations: 16 kB / 0.887 GB, free: 12.97 MB / 0.8542 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.0001061/0.01188, allocations: 192.5 kB / 0.8871 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.0119, allocations: 31.84 kB / 0.8872 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.01193, allocations: 21.95 kB / 0.8872 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.01194, allocations: 4 kB / 0.8872 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.01194, allocations: 0 / 0.8872 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.01194, allocations: 7.922 kB / 0.8872 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004887/0.01243, allocations: 0.5405 MB / 0.8877 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.01244, allocations: 0 / 0.8877 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.269e-05/0.01249, allocations: 23.92 kB / 0.8878 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.01249, allocations: 3.938 kB / 0.8878 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.01251, allocations: 8 kB / 0.8878 GB, free: 12.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01251, allocations: 4 kB / 0.8878 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.01251, allocations: 0 / 0.8878 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.01273, allocations: 332.5 kB / 0.8881 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.465e-05/0.01275, allocations: 19.84 kB / 0.8881 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.01277, allocations: 7.938 kB / 0.8881 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.619e-05/0.01281, allocations: 8 kB / 0.8881 GB, free: 11.71 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.01287, allocations: 19.95 kB / 0.8881 GB, free: 11.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.01288, allocations: 16 kB / 0.8882 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.835e-05/0.01293, allocations: 145.2 kB / 0.8883 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01293, allocations: 0 / 0.8883 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002213/0.01315, allocations: 63.89 kB / 0.8884 GB, free: 11.48 MB / 0.8542 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.0001348/0.01329, allocations: 119.1 kB / 0.8885 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003309/0.01362, allocations: 270.5 kB / 0.8887 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01362, allocations: 0 / 0.8887 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.35e-05/0.01371, allocations: 87.52 kB / 0.8888 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.01395, allocations: 38.86 kB / 0.8889 GB, free: 10.94 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004869/0.01443, allocations: 368.8 kB / 0.8892 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.918e-05/0.01448, allocations: 84.31 kB / 0.8893 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.149e-05/0.01454, allocations: 17.95 kB / 0.8893 GB, free: 10.43 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.509e-05/0.01459, allocations: 28.5 kB / 0.8893 GB, free: 10.4 MB / 0.8542 GB Notification: Performance of SimCode: time 6.71e-07/0.01459, allocations: 4 kB / 0.8893 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of Templates: time 0.005204/0.01979, allocations: 2.96 MB / 0.8922 GB, free: 7.484 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.872872008942068]