Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.001023/0.001023, 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.001006/0.001006, 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 1.004/1.004, allocations: 177.2 MB / 204.6 MB, free: 5.484 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.969/1.969, allocations: 377.9 MB / 0.624 GB, free: 8.363 MB / 0.5886 GB " [Timeout remaining time 177] 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.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 0.76 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.437e-05/1.621e-05, allocations: 6.062 kB / 0.76 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003868/0.003884, allocations: 4.01 MB / 0.7639 GB, free: 2.668 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001932/0.005816, allocations: 1.396 MB / 0.7653 GB, free: 1.27 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002567/0.006073, allocations: 31.75 kB / 0.7653 GB, free: 1.238 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.000268/0.006341, allocations: 123.5 kB / 0.7654 GB, free: 1.117 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.006592, allocations: 198.8 kB / 0.7656 GB, free: 0.9258 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005399/0.007132, allocations: 411.3 kB / 0.766 GB, free: 0.5234 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0007359/0.007868, allocations: 0.9719 MB / 0.767 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003472/0.008215, allocations: 298.6 kB / 0.7673 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000395/0.00861, allocations: 0.5066 MB / 0.7678 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.008834, allocations: 240 kB / 0.768 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 7.658e-05/0.00891, allocations: 88 kB / 0.7681 GB, free: 14.4 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.008977, allocations: 90.19 kB / 0.7682 GB, free: 14.31 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 9.797e-05/0.009075, allocations: 175.4 kB / 0.7683 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.009229, allocations: 239.4 kB / 0.7685 GB, free: 13.91 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0004432/0.009672, allocations: 0.5797 MB / 0.7691 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.009674, allocations: 0 / 0.7691 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of FrontEnd: time 8.51e-07/0.009675, allocations: 0 / 0.7691 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.00968, allocations: 2.75 kB / 0.7691 GB, free: 13.32 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001011/0.01069, allocations: 0.9745 MB / 0.7701 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.01072, allocations: 12.03 kB / 0.7701 GB, free: 12.31 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.686e-05/0.01082, allocations: 97.8 kB / 0.7702 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.01129, allocations: 425.1 kB / 0.7706 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.01132, allocations: 45.69 kB / 0.7706 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/0.01138, allocations: 60.38 kB / 0.7707 GB, free: 11.67 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.01183, allocations: 493.9 kB / 0.7712 GB, free: 11.15 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.01186, allocations: 6.609 kB / 0.7712 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.01189, allocations: 24.38 kB / 0.7712 GB, free: 11.12 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.0119, allocations: 19.94 kB / 0.7712 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002162/0.01212, allocations: 158.3 kB / 0.7714 GB, free: 10.95 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.01346, allocations: 1.289 MB / 0.7726 GB, free: 9.629 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.01373, allocations: 222.8 kB / 0.7728 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.01383, allocations: 94.31 kB / 0.7729 GB, free: 9.309 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.01385, allocations: 8.5 kB / 0.7729 GB, free: 9.301 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/0.01405, allocations: 162.2 kB / 0.7731 GB, free: 9.129 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.01405, allocations: 7.219 kB / 0.7731 GB, free: 9.125 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49): time 0.000421/0.01447, allocations: 258 kB / 0.7733 GB, free: 8.871 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.0145, allocations: 55.91 kB / 0.7734 GB, free: 8.805 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.01473, allocations: 383.1 kB / 0.7737 GB, free: 8.418 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.01476, allocations: 37.7 kB / 0.7738 GB, free: 8.375 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.01489, allocations: 282 kB / 0.7741 GB, free: 8.094 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.912e-05/0.01498, allocations: 170.5 kB / 0.7742 GB, free: 7.926 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.154e-05/0.01507, allocations: 94.3 kB / 0.7743 GB, free: 7.828 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.01517, allocations: 381.8 kB / 0.7747 GB, free: 7.449 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.037e-05/0.01525, allocations: 71 kB / 0.7747 GB, free: 7.375 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.01537, allocations: 168.3 kB / 0.7749 GB, free: 7.176 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.01558, allocations: 254.9 kB / 0.7751 GB, free: 6.898 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.01559, allocations: 4 kB / 0.7751 GB, free: 6.895 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0002829/0.01587, allocations: 317.8 kB / 0.7754 GB, free: 6.562 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.0159, allocations: 34.73 kB / 0.7755 GB, free: 6.523 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.0159, allocations: 0 / 0.7755 GB, free: 6.523 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.01592, allocations: 8 kB / 0.7755 GB, free: 6.516 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.01623, allocations: 137.5 kB / 0.7756 GB, free: 6.383 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.01624, allocations: 8 kB / 0.7756 GB, free: 6.375 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.01636, allocations: 55.61 kB / 0.7757 GB, free: 6.32 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.01638, allocations: 12.66 kB / 0.7757 GB, free: 6.309 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (conNoRes.conPID.I.trigger_internal,TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0001134/0.01649, allocations: 146.3 kB / 0.7758 GB, free: 6.156 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.01654, allocations: 49.11 kB / 0.7759 GB, free: 6.109 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.238e-05/0.0166, allocations: 61.45 kB / 0.7759 GB, free: 6.047 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.01661, allocations: 8.984 kB / 0.7759 GB, free: 6.039 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.01661, allocations: 3.938 kB / 0.7759 GB, free: 6.035 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.01661, allocations: 0 / 0.7759 GB, free: 6.035 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005672/0.01718, allocations: 0.5803 MB / 0.7765 GB, free: 5.434 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.01718, allocations: 4.703 kB / 0.7765 GB, free: 5.43 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.01744, allocations: 105.9 kB / 0.7766 GB, free: 5.328 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.01745, allocations: 7.938 kB / 0.7766 GB, free: 5.32 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.01747, allocations: 12 kB / 0.7766 GB, free: 5.309 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.01747, allocations: 4.891 kB / 0.7766 GB, free: 5.305 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01747, allocations: 0 / 0.7766 GB, free: 5.305 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000347/0.01782, allocations: 403.9 kB / 0.777 GB, free: 4.891 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.772e-05/0.01791, allocations: 63.47 kB / 0.7771 GB, free: 4.828 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.01794, allocations: 9.219 kB / 0.7771 GB, free: 4.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.01805, allocations: 19.98 kB / 0.7771 GB, free: 4.801 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.0181, allocations: 36.42 kB / 0.7772 GB, free: 4.766 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.01812, allocations: 12.94 kB / 0.7772 GB, free: 4.754 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001133/0.01823, allocations: 164.7 kB / 0.7773 GB, free: 4.598 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7e-08/0.01823, allocations: 0.7812 kB / 0.7773 GB, free: 4.598 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002318/0.01846, allocations: 143.6 kB / 0.7775 GB, free: 4.457 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 8.971e-05/0.01855, allocations: 93.48 kB / 0.7775 GB, free: 4.359 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002699/0.01882, allocations: 297.2 kB / 0.7778 GB, free: 4.055 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.01883, allocations: 7.938 kB / 0.7778 GB, free: 4.047 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.01895, allocations: 124.6 kB / 0.778 GB, free: 3.922 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.01931, allocations: 163.4 kB / 0.7781 GB, free: 3.777 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.02066, allocations: 1.106 MB / 0.7792 GB, free: 2.66 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.322e-05/0.02074, allocations: 134.9 kB / 0.7793 GB, free: 2.508 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001567/0.0209, allocations: 60.11 kB / 0.7794 GB, free: 2.457 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.02112, allocations: 161.3 kB / 0.7795 GB, free: 2.297 MB / 0.7292 GB Notification: Performance of SimCode: time 1.282e-06/0.02112, allocations: 0.625 kB / 0.7795 GB, free: 2.297 MB / 0.7292 GB Notification: Performance of Templates: time 0.008866/0.02998, allocations: 6.442 MB / 0.7858 GB, free: 12.1 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.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.2665567910298705]