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 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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 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.8436/0.8436, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 176.2 kB / 182.2 MB, free: 9.477 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 221.5 MB / 436.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000879/0.000879, allocations: 80.12 kB / 0.5074 GB, free: 10.21 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001702/0.001702, allocations: 268.7 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.537e-05/1.547e-05, allocations: 0 / 0.6765 GB, free: 12.86 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3641, allocations: 82.77 MB / 0.7574 GB, free: 32.05 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.5012, allocations: 115.9 MB / 0.8705 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.5015, allocations: 83.83 kB / 0.8706 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.04705/0.5486, allocations: 16.78 MB / 0.887 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.352e-06/0.5486, allocations: 0 / 0.887 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.232e-05/0.5487, allocations: 15.94 kB / 0.887 GB, free: 11.07 MB / 0.5573 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.001754/0.5504, allocations: 0.9353 MB / 0.8879 GB, free: 10.08 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.5505, allocations: 12.03 kB / 0.888 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000249/0.5507, allocations: 94.83 kB / 0.888 GB, free: 9.977 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.5518, allocations: 0.5979 MB / 0.8886 GB, free: 9.34 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.5519, allocations: 76.72 kB / 0.8887 GB, free: 9.254 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.163e-05/0.552, allocations: 32 kB / 0.8887 GB, free: 9.223 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006424/0.5527, allocations: 334.6 kB / 0.8891 GB, free: 8.895 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008731/0.5536, allocations: 0.5102 MB / 0.8896 GB, free: 8.332 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.5536, allocations: 4 kB / 0.8896 GB, free: 8.328 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/0.5536, allocations: 0 / 0.8896 GB, free: 8.328 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.5537, allocations: 12 kB / 0.8896 GB, free: 8.316 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.5566, allocations: 2.113 MB / 0.8916 GB, free: 6.133 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/0.5574, allocations: 432.8 kB / 0.892 GB, free: 5.695 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.5577, allocations: 164.8 kB / 0.8922 GB, free: 5.531 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.552e-05/0.5578, allocations: 4.719 kB / 0.8922 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000428/0.5582, allocations: 233.7 kB / 0.8924 GB, free: 5.285 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=45): time 2.415e-06/0.5582, allocations: 0 / 0.8924 GB, free: 5.285 MB / 0.5573 GB Notification: Performance of matching and sorting (n=45): time 0.0007227/0.5589, allocations: 386.4 kB / 0.8928 GB, free: 4.902 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/0.559, allocations: 191.9 kB / 0.893 GB, free: 4.672 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000574/0.5596, allocations: 475.7 kB / 0.8934 GB, free: 4.203 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.5597, allocations: 29.7 kB / 0.8935 GB, free: 4.168 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.56, allocations: 364.6 kB / 0.8938 GB, free: 3.805 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.5601, allocations: 153.8 kB / 0.894 GB, free: 3.652 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/0.5601, allocations: 0 / 0.894 GB, free: 3.652 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.5603, allocations: 378.8 kB / 0.8943 GB, free: 3.273 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.5605, allocations: 145 kB / 0.8945 GB, free: 3.129 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.5609, allocations: 266.6 kB / 0.8947 GB, free: 2.82 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.5612, allocations: 160.8 kB / 0.8949 GB, free: 2.66 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.5612, allocations: 0 / 0.8949 GB, free: 2.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007913/0.562, allocations: 491 kB / 0.8953 GB, free: 2.176 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003852/0.5624, allocations: 0.9919 MB / 0.8963 GB, free: 1.105 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.5624, allocations: 0 / 0.8963 GB, free: 1.105 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.5624, allocations: 11.98 kB / 0.8963 GB, free: 1.094 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005382/0.563, allocations: 119.9 kB / 0.8964 GB, free: 0.9766 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.563, allocations: 7.938 kB / 0.8964 GB, free: 0.9688 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004772/0.5635, allocations: 67.58 kB / 0.8965 GB, free: 0.9023 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.5635, allocations: 19.67 kB / 0.8965 GB, free: 0.8867 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.5635, allocations: 8 kB / 0.8965 GB, free: 0.8789 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006438/0.5642, allocations: 378.2 kB / 0.8969 GB, free: 0.5078 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.5642, allocations: 4 kB / 0.8969 GB, free: 0.5039 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.333e-06/0.5642, allocations: 4 kB / 0.8969 GB, free: 0.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.5647, allocations: 120.1 kB / 0.897 GB, free: 392 kB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.5647, allocations: 8 kB / 0.897 GB, free: 384 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/0.5651, allocations: 51.7 kB / 0.8971 GB, free: 332 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.5652, allocations: 23.95 kB / 0.8971 GB, free: 308 kB / 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 () * 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.0001663/0.5654, allocations: 126.7 kB / 0.8972 GB, free: 176 kB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.5655, allocations: 71.16 kB / 0.8973 GB, free: 104 kB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.5656, allocations: 66.86 kB / 0.8973 GB, free: 36 kB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.5657, allocations: 4 kB / 0.8973 GB, free: 32 kB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5657, allocations: 0 / 0.8973 GB, free: 32 kB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5657, allocations: 3.984 kB / 0.8973 GB, free: 28 kB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3439/0.9096, allocations: 0.5737 MB / 0.8979 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.9096, allocations: 4.688 kB / 0.8979 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005734/0.9102, allocations: 98.34 kB / 0.898 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.9102, allocations: 3.875 kB / 0.898 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.543e-05/0.9103, allocations: 2.953 kB / 0.898 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.9103, allocations: 4.578 kB / 0.898 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.9103, allocations: 0.7031 kB / 0.898 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.9113, allocations: 0.6195 MB / 0.8986 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.9116, allocations: 198.5 kB / 0.8988 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.434e-05/0.9117, allocations: 5.469 kB / 0.8988 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005513/0.9122, allocations: 54.5 kB / 0.8989 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.9124, allocations: 37.11 kB / 0.8989 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.695e-05/0.9124, allocations: 19.88 kB / 0.8989 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004605/0.9129, allocations: 362.1 kB / 0.8993 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.91e-07/0.9129, allocations: 2.438 kB / 0.8993 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0007313/0.9136, allocations: 216.8 kB / 0.8995 GB, free: 127.7 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) * 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.0001479/0.9138, allocations: 115 kB / 0.8996 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0009786/0.9148, allocations: 0.7039 MB / 0.9003 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.9148, allocations: 0 / 0.9003 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002745/0.9151, allocations: 184.2 kB / 0.9005 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008495/0.9159, allocations: 162.1 kB / 0.9006 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001736/0.9177, allocations: 0.8684 MB / 0.9015 GB, free: 127.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005804/0.9183, allocations: 0.9342 MB / 0.9024 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007648/0.919, allocations: 129.8 kB / 0.9025 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.9192, allocations: 37.88 kB / 0.9025 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of SimCode: time 6.41e-07/0.9192, allocations: 0 / 0.9025 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of Templates: time 0.01647/0.9357, allocations: 8.171 MB / 0.9105 GB, free: 126.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)