Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7315/0.7315, allocations: 140.1 MB / 156 MB, free: 5.156 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 193.4 kB / 188.5 MB, free: 15.8 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.4 MB / 426.3 MB, free: 8.449 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 94.28 kB / 0.4945 GB, free: 8.395 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001767/0.001767, allocations: 270.4 kB / 0.5728 GB, free: 66.21 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004855/0.0004855, allocations: 16 kB / 0.662 GB, free: 6.801 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4297/0.4302, allocations: 79.3 MB / 0.7395 GB, free: 46.33 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.16/0.5903, allocations: 115.3 MB / 0.8521 GB, free: 10.85 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.5906, allocations: 87.94 kB / 0.8522 GB, free: 10.76 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0474/0.638, allocations: 17.04 MB / 0.8688 GB, free: 9.688 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.895e-06/0.6381, allocations: 0 / 0.8688 GB, free: 9.688 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001142/0.6382, allocations: 16 kB / 0.8688 GB, free: 9.672 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00262/0.6409, allocations: 1.063 MB / 0.8699 GB, free: 8.543 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.6409, allocations: 8.031 kB / 0.8699 GB, free: 8.535 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003969/0.6413, allocations: 95.81 kB / 0.87 GB, free: 8.441 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001465/0.6428, allocations: 0.6067 MB / 0.8705 GB, free: 7.797 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.643, allocations: 104.9 kB / 0.8706 GB, free: 7.684 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.6431, allocations: 60.28 kB / 0.8707 GB, free: 7.625 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.6446, allocations: 0.6568 MB / 0.8713 GB, free: 6.918 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.6446, allocations: 3.938 kB / 0.8714 GB, free: 6.914 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.867e-05/0.6447, allocations: 24 kB / 0.8714 GB, free: 6.891 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.6447, allocations: 12 kB / 0.8714 GB, free: 6.879 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.6459, allocations: 499.6 kB / 0.8719 GB, free: 6.395 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00385/0.6498, allocations: 2.212 MB / 0.874 GB, free: 4.094 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.6512, allocations: 0.5967 MB / 0.8746 GB, free: 3.48 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005161/0.6517, allocations: 232.7 kB / 0.8748 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.6518, allocations: 4 kB / 0.8748 GB, free: 3.246 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008084/0.6526, allocations: 322.2 kB / 0.8751 GB, free: 2.918 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=45): time 4.729e-06/0.6526, allocations: 0 / 0.8751 GB, free: 2.918 MB / 0.5417 GB Notification: Performance of matching and sorting (n=45): time 0.00181/0.6545, allocations: 0.7114 MB / 0.8758 GB, free: 2.199 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.6546, allocations: 191.7 kB / 0.876 GB, free: 1.969 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009523/0.6555, allocations: 0.6334 MB / 0.8766 GB, free: 1.328 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.868e-05/0.6556, allocations: 37.7 kB / 0.8767 GB, free: 1.285 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003172/0.656, allocations: 356.7 kB / 0.877 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.6561, allocations: 153.8 kB / 0.8772 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.6562, allocations: 8 kB / 0.8772 GB, free: 0.7695 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6563, allocations: 326 kB / 0.8775 GB, free: 456 kB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004928/0.6568, allocations: 213 kB / 0.8777 GB, free: 244 kB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006335/0.6575, allocations: 348.7 kB / 0.878 GB, free: 15.85 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.6585, allocations: 0.5253 MB / 0.8785 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.6585, allocations: 0 / 0.8785 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001381/0.6599, allocations: 0.6685 MB / 0.8792 GB, free: 14.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.6601, allocations: 181.3 kB / 0.8794 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.6601, allocations: 4 kB / 0.8794 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.6601, allocations: 4 kB / 0.8794 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005154/0.6607, allocations: 127.8 kB / 0.8795 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.6607, allocations: 4 kB / 0.8795 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000564/0.6613, allocations: 91.42 kB / 0.8796 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.6613, allocations: 20 kB / 0.8796 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.6613, allocations: 4 kB / 0.8796 GB, free: 14.13 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001109/0.6625, allocations: 0.5585 MB / 0.8801 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6625, allocations: 3.938 kB / 0.8801 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.6625, allocations: 8 kB / 0.8802 GB, free: 13.56 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.6629, allocations: 111.8 kB / 0.8803 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.663, allocations: 8 kB / 0.8803 GB, free: 13.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.6635, allocations: 79.64 kB / 0.8803 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.615e-05/0.6635, allocations: 20 kB / 0.8804 GB, free: 13.34 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004572/0.664, allocations: 275.6 kB / 0.8806 GB, free: 13.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.6642, allocations: 79 kB / 0.8807 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.6644, allocations: 79.33 kB / 0.8808 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.6644, allocations: 12 kB / 0.8808 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/0.6645, allocations: 0 / 0.8808 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.6645, allocations: 0 / 0.8808 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009766/0.6654, allocations: 0.6493 MB / 0.8814 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.6655, allocations: 0 / 0.8814 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004667/0.6659, allocations: 95.83 kB / 0.8815 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.666, allocations: 0 / 0.8815 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/0.666, allocations: 15.98 kB / 0.8815 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.666, allocations: 4 kB / 0.8815 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.666, allocations: 0 / 0.8815 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/0.6677, allocations: 0.8304 MB / 0.8823 GB, free: 11.24 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003386/0.6681, allocations: 216 kB / 0.8825 GB, free: 11.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.6682, allocations: 8 kB / 0.8826 GB, free: 11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004945/0.6687, allocations: 63.94 kB / 0.8826 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.6688, allocations: 31.95 kB / 0.8826 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.822e-05/0.6689, allocations: 19.98 kB / 0.8827 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000644/0.6695, allocations: 435 kB / 0.8831 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.755e-06/0.6695, allocations: 0 / 0.8831 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0008474/0.6704, allocations: 239.2 kB / 0.8833 GB, free: 10.23 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002116/0.6706, allocations: 119.1 kB / 0.8834 GB, free: 10.11 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001811/0.6724, allocations: 0.8906 MB / 0.8843 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6724, allocations: 0 / 0.8843 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005076/0.673, allocations: 251.9 kB / 0.8845 GB, free: 8.941 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009743/0.6739, allocations: 184.8 kB / 0.8847 GB, free: 8.766 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.6766, allocations: 1.408 MB / 0.8861 GB, free: 7.324 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000533/0.6771, allocations: 0.9144 MB / 0.887 GB, free: 6.383 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0005351/0.6777, allocations: 93.03 kB / 0.8871 GB, free: 6.289 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.6778, allocations: 43.44 kB / 0.8871 GB, free: 6.246 MB / 0.5573 GB Notification: Performance of SimCode: time 1.072e-06/0.6778, allocations: 0 / 0.8871 GB, free: 6.246 MB / 0.5573 GB Notification: Performance of Templates: time 0.3383/1.016, allocations: 7.887 MB / 0.8948 GB, free: 138.1 MB / 0.5573 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)