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.0008596/0.0008596, 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.00101/0.00101, 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.012/1.012, allocations: 177.1 MB / 203.4 MB, free: 5.617 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.175/2.175, allocations: 429.5 MB / 0.6732 GB, free: 4.051 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.453e-06/1.453e-06, allocations: 0 / 0.8781 GB, free: 6.348 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.195e-05, allocations: 7.156 kB / 0.8781 GB, free: 6.34 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002321/0.002343, allocations: 1.84 MB / 0.8799 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.003509, allocations: 0.6981 MB / 0.8806 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.003624, allocations: 9.062 kB / 0.8806 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.00379, allocations: 23.73 kB / 0.8807 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.573e-05/0.003865, allocations: 38.12 kB / 0.8807 GB, free: 3.746 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007379/0.004603, allocations: 263.3 kB / 0.8809 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000424/0.005027, allocations: 407.4 kB / 0.8813 GB, free: 3.09 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003159/0.005343, allocations: 209.4 kB / 0.8815 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.005529, allocations: 215.6 kB / 0.8817 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.005694, allocations: 99.72 kB / 0.8818 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.929e-05/0.005743, allocations: 40 kB / 0.8819 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.005856, allocations: 56.7 kB / 0.8819 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.933e-05/0.005926, allocations: 63.81 kB / 0.882 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.006034, allocations: 109.4 kB / 0.8821 GB, free: 2.312 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003582/0.006392, allocations: 279 kB / 0.8824 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.006395, allocations: 0 / 0.8824 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.162e-06/0.006396, allocations: 0 / 0.8824 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.006402, allocations: 0 / 0.8824 GB, free: 2.039 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.0007912/0.007193, allocations: 0.5808 MB / 0.8829 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.00724, allocations: 8.031 kB / 0.8829 GB, free: 1.406 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.007494, allocations: 60.77 kB / 0.883 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.007809, allocations: 225.7 kB / 0.8832 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.007848, allocations: 20.88 kB / 0.8832 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.291e-05/0.007891, allocations: 32.38 kB / 0.8833 GB, free: 1.051 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.008223, allocations: 221.7 kB / 0.8835 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.00824, allocations: 4.188 kB / 0.8835 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.008264, allocations: 16.36 kB / 0.8835 GB, free: 0.8008 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.008277, allocations: 4.375 kB / 0.8835 GB, free: 0.7969 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.008448, allocations: 106.8 kB / 0.8836 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009746/0.009423, allocations: 0.7749 MB / 0.8844 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.009632, allocations: 139.3 kB / 0.8845 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.792e-05/0.00971, allocations: 59.52 kB / 0.8845 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.009731, allocations: 4 kB / 0.8845 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.009891, allocations: 128 kB / 0.8847 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=27): time 2.335e-06/0.009894, allocations: 0 / 0.8847 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of matching and sorting (n=27): time 0.0003597/0.01025, allocations: 225.2 kB / 0.8849 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.0103, allocations: 59.41 kB / 0.8849 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.01043, allocations: 224.2 kB / 0.8852 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.01047, allocations: 41.7 kB / 0.8852 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.01057, allocations: 187.5 kB / 0.8854 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.01062, allocations: 71.47 kB / 0.8854 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.01072, allocations: 99.27 kB / 0.8855 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.01085, allocations: 0.5001 MB / 0.886 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.01098, allocations: 93.66 kB / 0.8861 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.01113, allocations: 183.4 kB / 0.8863 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.01134, allocations: 210.3 kB / 0.8865 GB, free: 13.51 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.01134, allocations: 4 kB / 0.8865 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003822/0.01172, allocations: 349.9 kB / 0.8868 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.01176, allocations: 41.62 kB / 0.8869 GB, free: 13.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.01176, allocations: 0 / 0.8869 GB, free: 13.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.01178, allocations: 4 kB / 0.8869 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.01189, allocations: 31.92 kB / 0.8869 GB, free: 13.06 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.0119, allocations: 7.938 kB / 0.8869 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.01202, allocations: 47.75 kB / 0.887 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.01204, allocations: 20.22 kB / 0.887 GB, free: 12.99 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.0001193/0.01216, allocations: 192.5 kB / 0.8872 GB, free: 12.79 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.01219, allocations: 27.89 kB / 0.8872 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.236e-05/0.01223, allocations: 21.97 kB / 0.8872 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.01223, allocations: 0 / 0.8872 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.01223, allocations: 0 / 0.8872 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.01224, allocations: 7.938 kB / 0.8872 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005311/0.01277, allocations: 0.5444 MB / 0.8877 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.01277, allocations: 4 kB / 0.8877 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.495e-05/0.01282, allocations: 19.92 kB / 0.8878 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.01282, allocations: 7.938 kB / 0.8878 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.01284, allocations: 4 kB / 0.8878 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.01284, allocations: 0 / 0.8878 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.01284, allocations: 0 / 0.8878 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.01307, allocations: 336.5 kB / 0.8881 GB, free: 11.77 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.55e-05/0.01309, allocations: 15.84 kB / 0.8881 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.01311, allocations: 11.92 kB / 0.8881 GB, free: 11.74 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.756e-05/0.01316, allocations: 12 kB / 0.8881 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.859e-05/0.01323, allocations: 27.95 kB / 0.8882 GB, free: 11.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.01324, allocations: 8 kB / 0.8882 GB, free: 11.7 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.552e-05/0.01329, allocations: 139.2 kB / 0.8883 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01329, allocations: 0 / 0.8883 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002325/0.01353, allocations: 63.88 kB / 0.8884 GB, free: 11.5 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.0001376/0.01366, allocations: 115.1 kB / 0.8885 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003494/0.01401, allocations: 270.9 kB / 0.8887 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01401, allocations: 8.062 kB / 0.8887 GB, free: 11.08 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.45e-05/0.01411, allocations: 83.56 kB / 0.8888 GB, free: 11 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.01434, allocations: 31.97 kB / 0.8888 GB, free: 10.96 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005231/0.01487, allocations: 366.6 kB / 0.8892 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.613e-05/0.01492, allocations: 84.27 kB / 0.8893 GB, free: 10.47 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.114e-05/0.01498, allocations: 25.94 kB / 0.8893 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.203e-05/0.01504, allocations: 28.5 kB / 0.8893 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of SimCode: time 1.152e-06/0.01504, allocations: 0 / 0.8893 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of Templates: time 0.005104/0.02014, allocations: 2.784 MB / 0.892 GB, free: 7.688 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.8128836392425]