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.001434/0.001434, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001692/0.001692, allocations: 169 kB / 23.27 MB, free: 1.223 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.9614/0.9614, allocations: 177.2 MB / 203.7 MB, free: 5.516 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.382/2.382, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 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.794e-06/1.794e-06, allocations: 0 / 0.8897 GB, free: 9.805 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.535e-05/2.714e-05, allocations: 5.406 kB / 0.8897 GB, free: 9.801 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002388/0.002415, allocations: 1.805 MB / 0.8915 GB, free: 7.984 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.003455, allocations: 0.6931 MB / 0.8922 GB, free: 7.289 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.003562, allocations: 7.938 kB / 0.8922 GB, free: 7.281 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.003693, allocations: 27.73 kB / 0.8922 GB, free: 7.254 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.082e-05/0.003754, allocations: 27.72 kB / 0.8922 GB, free: 7.227 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006814/0.004435, allocations: 259.3 kB / 0.8925 GB, free: 6.973 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0004144/0.004849, allocations: 423.2 kB / 0.8929 GB, free: 6.559 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.005152, allocations: 223.3 kB / 0.8931 GB, free: 6.34 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.005341, allocations: 203.7 kB / 0.8933 GB, free: 6.141 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.005501, allocations: 99.72 kB / 0.8934 GB, free: 6.043 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 4.213e-05/0.005543, allocations: 40 kB / 0.8934 GB, free: 6.004 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.005645, allocations: 59.92 kB / 0.8935 GB, free: 5.945 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 5.995e-05/0.005705, allocations: 71.81 kB / 0.8935 GB, free: 5.875 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 7.976e-05/0.005785, allocations: 99.78 kB / 0.8936 GB, free: 5.777 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.006078, allocations: 275.1 kB / 0.8939 GB, free: 5.508 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.00608, allocations: 4 kB / 0.8939 GB, free: 5.504 MB / 0.8542 GB Notification: Performance of FrontEnd: time 9.82e-07/0.006081, allocations: 3.938 kB / 0.8939 GB, free: 5.5 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.006086, allocations: 0 / 0.8939 GB, free: 5.5 MB / 0.8542 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.000585/0.006671, allocations: 0.5791 MB / 0.8945 GB, free: 4.871 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.006706, allocations: 8.031 kB / 0.8945 GB, free: 4.863 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.006903, allocations: 64.72 kB / 0.8945 GB, free: 4.801 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.00713, allocations: 216.2 kB / 0.8947 GB, free: 4.562 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.007159, allocations: 24.88 kB / 0.8948 GB, free: 4.539 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.148e-05/0.007191, allocations: 32.38 kB / 0.8948 GB, free: 4.508 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.007416, allocations: 209.7 kB / 0.895 GB, free: 4.285 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.007426, allocations: 192 / 0.895 GB, free: 4.285 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.007441, allocations: 8.375 kB / 0.895 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.007447, allocations: 4.375 kB / 0.895 GB, free: 4.273 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.007548, allocations: 87.3 kB / 0.8951 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007111/0.008259, allocations: 0.7482 MB / 0.8958 GB, free: 3.402 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.008413, allocations: 127.2 kB / 0.896 GB, free: 3.266 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.557e-05/0.008468, allocations: 51.52 kB / 0.896 GB, free: 3.211 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.008494, allocations: 8 kB / 0.896 GB, free: 3.203 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001334/0.008627, allocations: 116.2 kB / 0.8961 GB, free: 3.074 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=27): time 1.893e-06/0.008629, allocations: 0 / 0.8961 GB, free: 3.074 MB / 0.8542 GB Notification: Performance of matching and sorting (n=27): time 0.0002516/0.008881, allocations: 197.5 kB / 0.8963 GB, free: 2.879 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.008911, allocations: 59.41 kB / 0.8964 GB, free: 2.809 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003067/0.009218, allocations: 219.9 kB / 0.8966 GB, free: 2.578 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.009249, allocations: 53.62 kB / 0.8966 GB, free: 2.52 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.859e-05/0.009328, allocations: 183.5 kB / 0.8968 GB, free: 2.336 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.009371, allocations: 67.47 kB / 0.8969 GB, free: 2.27 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.905e-05/0.00947, allocations: 99.27 kB / 0.897 GB, free: 2.164 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.009589, allocations: 0.5039 MB / 0.8974 GB, free: 1.648 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.512e-05/0.009675, allocations: 85.66 kB / 0.8975 GB, free: 1.559 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.009783, allocations: 163.4 kB / 0.8977 GB, free: 1.355 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.009949, allocations: 209.5 kB / 0.8979 GB, free: 1.113 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.009952, allocations: 0 / 0.8979 GB, free: 1.113 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003232/0.01028, allocations: 322.5 kB / 0.8982 GB, free: 0.7812 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.01031, allocations: 33.7 kB / 0.8982 GB, free: 0.7422 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-06/0.01032, allocations: 0 / 0.8982 GB, free: 0.7422 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.01033, allocations: 4 kB / 0.8982 GB, free: 0.7383 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.01044, allocations: 31.92 kB / 0.8983 GB, free: 0.707 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.01045, allocations: 7.984 kB / 0.8983 GB, free: 0.6992 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.01058, allocations: 47.92 kB / 0.8983 GB, free: 0.6523 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.0106, allocations: 23.98 kB / 0.8983 GB, free: 0.6289 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.suspend,sta.stateGraphRoot.resume) * 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.00013/0.01073, allocations: 188.5 kB / 0.8985 GB, free: 444 kB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.01076, allocations: 27.91 kB / 0.8985 GB, free: 416 kB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.88e-05/0.0108, allocations: 17.97 kB / 0.8986 GB, free: 400 kB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.0108, allocations: 4 kB / 0.8986 GB, free: 396 kB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.01081, allocations: 0 / 0.8986 GB, free: 396 kB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.01081, allocations: 3.984 kB / 0.8986 GB, free: 392 kB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000527/0.01134, allocations: 0.5067 MB / 0.8991 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.01135, allocations: 7.938 kB / 0.8991 GB, free: 15.83 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-05/0.01141, allocations: 19.92 kB / 0.8991 GB, free: 15.81 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.01141, allocations: 4 kB / 0.8991 GB, free: 15.81 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.01142, allocations: 4 kB / 0.8991 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.01143, allocations: 3.938 kB / 0.8991 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.01143, allocations: 4 kB / 0.8991 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.01166, allocations: 320.4 kB / 0.8994 GB, free: 15.46 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.975e-05/0.01168, allocations: 19.83 kB / 0.8994 GB, free: 15.45 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.0117, allocations: 8 kB / 0.8994 GB, free: 15.44 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.59e-05/0.01176, allocations: 15.94 kB / 0.8995 GB, free: 15.42 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.01182, allocations: 19.95 kB / 0.8995 GB, free: 15.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.01183, allocations: 8 kB / 0.8995 GB, free: 15.39 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.019e-05/0.01189, allocations: 139.1 kB / 0.8996 GB, free: 15.26 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4e-08/0.01189, allocations: 0 / 0.8996 GB, free: 15.26 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002593/0.01215, allocations: 63.89 kB / 0.8997 GB, free: 15.2 MB / 0.8698 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.000173/0.01232, allocations: 115.1 kB / 0.8998 GB, free: 15.07 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003049/0.01263, allocations: 249.7 kB / 0.9 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.01263, allocations: 0 / 0.9 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 8.066e-05/0.01271, allocations: 79.56 kB / 0.9001 GB, free: 14.72 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.01297, allocations: 26.05 kB / 0.9001 GB, free: 14.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005574/0.01352, allocations: 363.7 kB / 0.9005 GB, free: 14.32 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.946e-05/0.01358, allocations: 84.31 kB / 0.9005 GB, free: 14.21 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.276e-05/0.01365, allocations: 22.33 kB / 0.9006 GB, free: 14.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.01378, allocations: 122.2 kB / 0.9007 GB, free: 14.07 MB / 0.8698 GB Notification: Performance of SimCode: time 1.042e-06/0.01378, allocations: 0 / 0.9007 GB, free: 14.07 MB / 0.8698 GB Notification: Performance of Templates: time 0.005259/0.01904, allocations: 3.059 MB / 0.9037 GB, free: 11.07 MB / 0.8698 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.344951052684337]