Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004857/0.004857, allocations: 101.7 kB / 15.73 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 191.5 kB / 16.67 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002097/0.002097, allocations: 298.8 kB / 290.8 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9176/0.9176, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 91.86 kB / 0.6814 GB, free: 7 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3896, allocations: 86.98 MB / 0.7664 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004867/0.3945, allocations: 4.11 MB / 0.7704 GB, free: 15.81 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001973/0.3965, allocations: 1.325 MB / 0.7717 GB, free: 14.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002836/0.3968, allocations: 19.94 kB / 0.7717 GB, free: 14.46 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.3971, allocations: 134.6 kB / 0.7718 GB, free: 14.33 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.3974, allocations: 178.4 kB / 0.772 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.3982, allocations: 422.8 kB / 0.7724 GB, free: 13.74 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008306/0.399, allocations: 0.9632 MB / 0.7733 GB, free: 12.78 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005824/0.3996, allocations: 465.8 kB / 0.7738 GB, free: 12.31 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003049/0.3999, allocations: 326.8 kB / 0.7741 GB, free: 11.99 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.4003, allocations: 338.3 kB / 0.7744 GB, free: 11.66 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.4004, allocations: 92 kB / 0.7745 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.4005, allocations: 92 kB / 0.7746 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.4006, allocations: 179.4 kB / 0.7747 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000295/0.4009, allocations: 390 kB / 0.7751 GB, free: 10.92 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0008609/0.4018, allocations: 1.061 MB / 0.7762 GB, free: 9.855 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.4018, allocations: 0 / 0.7762 GB, free: 9.855 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4018, allocations: 0 / 0.7762 GB, free: 9.855 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.4018, allocations: 4 kB / 0.7762 GB, free: 9.852 MB / 0.545 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.001677/0.4035, allocations: 1.085 MB / 0.7772 GB, free: 8.707 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.4036, allocations: 12.03 kB / 0.7772 GB, free: 8.695 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.4037, allocations: 80 kB / 0.7773 GB, free: 8.617 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008303/0.4045, allocations: 0.5651 MB / 0.7779 GB, free: 8.016 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.4046, allocations: 41.69 kB / 0.7779 GB, free: 7.977 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.086e-05/0.4047, allocations: 56.38 kB / 0.778 GB, free: 7.922 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.4057, allocations: 0.6156 MB / 0.7786 GB, free: 7.285 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/0.4057, allocations: 3.906 kB / 0.7786 GB, free: 7.281 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.4058, allocations: 24 kB / 0.7786 GB, free: 7.258 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.4058, allocations: 12 kB / 0.7786 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009636/0.4068, allocations: 465 kB / 0.779 GB, free: 6.789 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.4094, allocations: 1.985 MB / 0.781 GB, free: 4.734 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000886/0.4103, allocations: 446.8 kB / 0.7814 GB, free: 4.289 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004313/0.4107, allocations: 242.1 kB / 0.7816 GB, free: 4.051 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.4108, allocations: 4.438 kB / 0.7816 GB, free: 4.047 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005008/0.4113, allocations: 265.2 kB / 0.7819 GB, free: 3.777 MB / 0.545 GB Notification: Performance of pre-optimization done (n=49): time 3.296e-06/0.4113, allocations: 0 / 0.7819 GB, free: 3.777 MB / 0.545 GB Notification: Performance of matching and sorting (n=49): time 0.00121/0.4125, allocations: 0.5843 MB / 0.7825 GB, free: 3.191 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.4125, allocations: 59.83 kB / 0.7825 GB, free: 3.121 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004378/0.413, allocations: 442.8 kB / 0.7829 GB, free: 2.68 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.413, allocations: 37.7 kB / 0.783 GB, free: 2.637 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.4132, allocations: 328.2 kB / 0.7833 GB, free: 2.309 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.4134, allocations: 169.5 kB / 0.7834 GB, free: 2.141 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.4135, allocations: 90.25 kB / 0.7835 GB, free: 2.043 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4137, allocations: 362.8 kB / 0.7839 GB, free: 1.68 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.4141, allocations: 169 kB / 0.784 GB, free: 1.516 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.4145, allocations: 253.7 kB / 0.7843 GB, free: 1.242 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008079/0.4153, allocations: 456 kB / 0.7847 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.4153, allocations: 4 kB / 0.7847 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000989/0.4163, allocations: 0.5625 MB / 0.7853 GB, free: 192 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.4164, allocations: 37.64 kB / 0.7853 GB, free: 148 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4164, allocations: 4 kB / 0.7853 GB, free: 144 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.4164, allocations: 4 kB / 0.7853 GB, free: 140 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.4169, allocations: 115.8 kB / 0.7854 GB, free: 24 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.4169, allocations: 4 kB / 0.7854 GB, free: 20 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.4172, allocations: 51.56 kB / 0.7855 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.4172, allocations: 20 kB / 0.7855 GB, free: 15.95 MB / 0.5606 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * 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.0002335/0.4175, allocations: 216.7 kB / 0.7857 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-05/0.4176, allocations: 59.28 kB / 0.7858 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.4177, allocations: 61.58 kB / 0.7858 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.4177, allocations: 4 kB / 0.7858 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4177, allocations: 4 kB / 0.7858 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.4177, allocations: 3.984 kB / 0.7858 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.4194, allocations: 1.178 MB / 0.787 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.4194, allocations: 0 / 0.787 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004659/0.4198, allocations: 95.83 kB / 0.7871 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.4199, allocations: 4 kB / 0.7871 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.4199, allocations: 15.98 kB / 0.7871 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.4199, allocations: 0 / 0.7871 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4199, allocations: 0 / 0.7871 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.4212, allocations: 0.7651 MB / 0.7878 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.4214, allocations: 168.3 kB / 0.788 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.142e-05/0.4214, allocations: 8 kB / 0.788 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.4218, allocations: 31.97 kB / 0.788 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.4219, allocations: 32.39 kB / 0.7881 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.4219, allocations: 12 kB / 0.7881 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003091/0.4222, allocations: 310.9 kB / 0.7884 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.463e-06/0.4222, allocations: 0 / 0.7884 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003969/0.4226, allocations: 143.5 kB / 0.7885 GB, free: 12.77 MB / 0.5606 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 0.0001132/0.4227, allocations: 111.2 kB / 0.7886 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008963/0.4236, allocations: 485 kB / 0.7891 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4237, allocations: 0 / 0.7891 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004094/0.4241, allocations: 218.4 kB / 0.7893 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007317/0.4248, allocations: 161.2 kB / 0.7894 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.4272, allocations: 1.341 MB / 0.7908 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.4276, allocations: 0.886 MB / 0.7916 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002318/0.4279, allocations: 68.58 kB / 0.7917 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.428, allocations: 43.42 kB / 0.7917 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.428, allocations: 0 / 0.7917 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of Templates: time 0.01051/0.4385, allocations: 6.007 MB / 0.7976 GB, free: 3.477 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)