Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009038/0.0009038, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.001051/0.001051, allocations: 161 kB / 24.17 MB, free: 332 kB / 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.9608/0.9608, allocations: 177.1 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.962/1.962, allocations: 377.9 MB / 0.624 GB, free: 8.324 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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_12_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_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 0.76 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.408e-05/1.528e-05, allocations: 6.047 kB / 0.76 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002157/0.002172, allocations: 1.818 MB / 0.7618 GB, free: 4.84 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.003215, allocations: 0.7081 MB / 0.7625 GB, free: 4.133 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.011e-05/0.003305, allocations: 4 kB / 0.7625 GB, free: 4.129 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.003432, allocations: 32.88 kB / 0.7625 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.73e-05/0.003509, allocations: 34.61 kB / 0.7625 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006311/0.00414, allocations: 256.7 kB / 0.7628 GB, free: 3.82 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.000397/0.004537, allocations: 416 kB / 0.7632 GB, free: 3.426 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.004793, allocations: 220 kB / 0.7634 GB, free: 3.215 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.004957, allocations: 207.7 kB / 0.7636 GB, free: 3.012 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.005102, allocations: 99.72 kB / 0.7637 GB, free: 2.914 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.96e-05/0.005142, allocations: 44.56 kB / 0.7637 GB, free: 2.871 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.279e-05/0.005235, allocations: 55.92 kB / 0.7638 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.005296, allocations: 72.34 kB / 0.7638 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.354e-05/0.00538, allocations: 104.4 kB / 0.7639 GB, free: 2.645 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.00566, allocations: 275.1 kB / 0.7642 GB, free: 2.375 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.005662, allocations: 5.281 kB / 0.7642 GB, free: 2.371 MB / 0.7136 GB Notification: Performance of FrontEnd: time 6.01e-07/0.005663, allocations: 0 / 0.7642 GB, free: 2.371 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.005667, allocations: 0 / 0.7642 GB, free: 2.371 MB / 0.7136 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.0005249/0.006192, allocations: 466.5 kB / 0.7647 GB, free: 1.883 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.006227, allocations: 8.031 kB / 0.7647 GB, free: 1.875 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.006412, allocations: 56.88 kB / 0.7647 GB, free: 1.82 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.006626, allocations: 163.4 kB / 0.7649 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.161e-05/0.006657, allocations: 28.88 kB / 0.7649 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.006689, allocations: 28.38 kB / 0.7649 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.006905, allocations: 207.9 kB / 0.7651 GB, free: 1.363 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.006913, allocations: 0.9375 kB / 0.7651 GB, free: 1.363 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.006931, allocations: 12.38 kB / 0.7651 GB, free: 1.352 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.006938, allocations: 5.125 kB / 0.7651 GB, free: 1.348 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.213e-05/0.00703, allocations: 75.38 kB / 0.7652 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005995/0.007629, allocations: 0.53 MB / 0.7657 GB, free: 0.7305 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.007769, allocations: 106.4 kB / 0.7658 GB, free: 0.6172 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.259e-05/0.007812, allocations: 40.84 kB / 0.7659 GB, free: 0.5742 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.007826, allocations: 8 kB / 0.7659 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/0.007943, allocations: 118.1 kB / 0.766 GB, free: 448 kB / 0.7136 GB Notification: Performance of pre-optimization done (n=27): time 1.483e-06/0.007944, allocations: 5.469 kB / 0.766 GB, free: 444 kB / 0.7136 GB Notification: Performance of matching and sorting (n=27): time 0.0001935/0.008138, allocations: 149.8 kB / 0.7661 GB, free: 292 kB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.008171, allocations: 59.34 kB / 0.7662 GB, free: 220 kB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.885e-05/0.008259, allocations: 162.5 kB / 0.7663 GB, free: 44 kB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.0083, allocations: 47.02 kB / 0.7664 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.008371, allocations: 136.7 kB / 0.7665 GB, free: 15.85 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 3.739e-05/0.008408, allocations: 63.47 kB / 0.7666 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.617e-05/0.008494, allocations: 98.84 kB / 0.7667 GB, free: 15.69 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.54e-05/0.00858, allocations: 330.7 kB / 0.767 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.557e-05/0.008655, allocations: 73.67 kB / 0.7671 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.008756, allocations: 148.7 kB / 0.7672 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.008905, allocations: 186.8 kB / 0.7674 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.008907, allocations: 0 / 0.7674 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002246/0.009132, allocations: 260.4 kB / 0.7676 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.009161, allocations: 41.69 kB / 0.7677 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.009166, allocations: 0 / 0.7677 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.009178, allocations: 4 kB / 0.7677 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.165e-05/0.00926, allocations: 33.42 kB / 0.7677 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.009265, allocations: 4 kB / 0.7677 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.009386, allocations: 51.75 kB / 0.7678 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.009403, allocations: 12.59 kB / 0.7678 GB, free: 14.47 MB / 0.7292 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.0001/0.009503, allocations: 149.3 kB / 0.7679 GB, free: 14.32 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.009522, allocations: 19.98 kB / 0.7679 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.175e-05/0.009554, allocations: 21.95 kB / 0.768 GB, free: 14.28 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.009556, allocations: 7.938 kB / 0.768 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.009559, allocations: 0 / 0.768 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.009563, allocations: 0 / 0.768 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003454/0.009908, allocations: 375 kB / 0.7683 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.009909, allocations: 3.125 kB / 0.7683 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.823e-05/0.009948, allocations: 19.92 kB / 0.7683 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.00995, allocations: 0 / 0.7683 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.009958, allocations: 4 kB / 0.7683 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.009959, allocations: 4 kB / 0.7684 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.009961, allocations: 3.938 kB / 0.7684 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.01009, allocations: 216.2 kB / 0.7686 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.411e-05/0.01011, allocations: 19.83 kB / 0.7686 GB, free: 13.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.01012, allocations: 9.812 kB / 0.7686 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.117e-05/0.01017, allocations: 7.984 kB / 0.7686 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.01022, allocations: 31.88 kB / 0.7686 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.01023, allocations: 8 kB / 0.7686 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.065e-05/0.01025, allocations: 18.41 kB / 0.7687 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7e-08/0.01025, allocations: 1.125 kB / 0.7687 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001915/0.01044, allocations: 63.89 kB / 0.7687 GB, free: 13.46 MB / 0.7292 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.0001079/0.01055, allocations: 106.5 kB / 0.7688 GB, free: 13.36 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002166/0.01076, allocations: 238.6 kB / 0.769 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.01077, allocations: 6.469 kB / 0.769 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 6.546e-05/0.01083, allocations: 65.23 kB / 0.7691 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.01099, allocations: 31.97 kB / 0.7691 GB, free: 13 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004043/0.01139, allocations: 361.7 kB / 0.7695 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.031e-05/0.01144, allocations: 80.33 kB / 0.7696 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.52e-05/0.0115, allocations: 31.8 kB / 0.7696 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.01161, allocations: 99.34 kB / 0.7697 GB, free: 12.4 MB / 0.7292 GB Notification: Performance of SimCode: time 9.72e-07/0.01161, allocations: 0.625 kB / 0.7697 GB, free: 12.4 MB / 0.7292 GB Notification: Performance of Templates: time 0.004651/0.01626, allocations: 2.992 MB / 0.7726 GB, free: 9.57 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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: 4.95938197337091]