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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 106.2 kB / 16.41 MB, free: 6.438 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.001209/0.001209, allocations: 191.2 kB / 17.34 MB, free: 5.742 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002173/0.002173, allocations: 291.4 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9466/0.9466, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002541/0.002541, allocations: 95.84 kB / 0.6821 GB, free: 7.027 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4347/0.4373, allocations: 86.97 MB / 0.767 GB, free: 3.965 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.004646/0.4419, allocations: 3.725 MB / 0.7707 GB, free: 220 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002362/0.4443, allocations: 1.332 MB / 0.772 GB, free: 14.88 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000318/0.4447, allocations: 23.88 kB / 0.772 GB, free: 14.85 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.445, allocations: 126.6 kB / 0.7721 GB, free: 14.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004598/0.4455, allocations: 170.5 kB / 0.7723 GB, free: 14.56 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.4465, allocations: 0.5705 MB / 0.7728 GB, free: 14 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0009206/0.4475, allocations: 0.9604 MB / 0.7738 GB, free: 13.04 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005266/0.448, allocations: 369.1 kB / 0.7741 GB, free: 12.67 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004049/0.4484, allocations: 378.3 kB / 0.7745 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.4488, allocations: 346.1 kB / 0.7748 GB, free: 11.96 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.4489, allocations: 80 kB / 0.7749 GB, free: 11.88 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.449, allocations: 76 kB / 0.7749 GB, free: 11.81 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.4492, allocations: 183.3 kB / 0.7751 GB, free: 11.63 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002823/0.4495, allocations: 385.6 kB / 0.7755 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007768/0.4502, allocations: 0.8898 MB / 0.7764 GB, free: 10.36 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.4503, allocations: 0 / 0.7764 GB, free: 10.36 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.827e-06/0.4503, allocations: 0 / 0.7764 GB, free: 10.36 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.4503, allocations: 3.938 kB / 0.7764 GB, free: 10.36 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001957/0.4522, allocations: 1.183 MB / 0.7775 GB, free: 9.113 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.4523, allocations: 12.03 kB / 0.7775 GB, free: 9.102 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.4524, allocations: 91.81 kB / 0.7776 GB, free: 9.012 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009787/0.4534, allocations: 0.6143 MB / 0.7782 GB, free: 8.355 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.4535, allocations: 96.95 kB / 0.7783 GB, free: 8.25 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.112e-05/0.4537, allocations: 60.38 kB / 0.7784 GB, free: 8.191 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.4547, allocations: 0.608 MB / 0.779 GB, free: 7.543 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.4548, allocations: 0 / 0.779 GB, free: 7.543 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.463e-05/0.4548, allocations: 24 kB / 0.779 GB, free: 7.52 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.4548, allocations: 12 kB / 0.779 GB, free: 7.508 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009655/0.4558, allocations: 423.7 kB / 0.7794 GB, free: 7.094 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002638/0.4585, allocations: 2.094 MB / 0.7814 GB, free: 4.91 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.4597, allocations: 0.4951 MB / 0.7819 GB, free: 4.402 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005469/0.4602, allocations: 216.8 kB / 0.7821 GB, free: 4.188 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.4603, allocations: 4 kB / 0.7821 GB, free: 4.184 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006241/0.4609, allocations: 282.1 kB / 0.7824 GB, free: 3.895 MB / 0.545 GB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.4609, allocations: 4 kB / 0.7824 GB, free: 3.891 MB / 0.545 GB Notification: Performance of matching and sorting (n=45): time 0.00144/0.4624, allocations: 0.6099 MB / 0.783 GB, free: 3.273 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.4624, allocations: 85.95 kB / 0.7831 GB, free: 3.172 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006628/0.4631, allocations: 0.6178 MB / 0.7837 GB, free: 2.543 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.4632, allocations: 33.7 kB / 0.7837 GB, free: 2.504 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.4634, allocations: 356.8 kB / 0.7841 GB, free: 2.148 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.4635, allocations: 149.8 kB / 0.7842 GB, free: 2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.4637, allocations: 98.14 kB / 0.7843 GB, free: 1.898 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4638, allocations: 330 kB / 0.7846 GB, free: 1.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/0.4643, allocations: 183 kB / 0.7848 GB, free: 1.387 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.4648, allocations: 288.1 kB / 0.7851 GB, free: 1.07 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009131/0.4657, allocations: 474 kB / 0.7855 GB, free: 0.5703 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4658, allocations: 7.875 kB / 0.7855 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001173/0.4669, allocations: 0.5982 MB / 0.7861 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.467, allocations: 40.2 kB / 0.7861 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.467, allocations: 4 kB / 0.7861 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.467, allocations: 4 kB / 0.7862 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004784/0.4675, allocations: 107.8 kB / 0.7863 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.4675, allocations: 4 kB / 0.7863 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004067/0.4679, allocations: 71.69 kB / 0.7863 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/0.468, allocations: 16 kB / 0.7863 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005487/0.4685, allocations: 315.6 kB / 0.7866 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004448/0.469, allocations: 264.2 kB / 0.7869 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008524/0.4699, allocations: 450 kB / 0.7873 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.043e-06/0.4699, allocations: 4 kB / 0.7873 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001104/0.471, allocations: 0.5825 MB / 0.7879 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.471, allocations: 34.02 kB / 0.7879 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.471, allocations: 4 kB / 0.7879 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.032e-06/0.471, allocations: 4 kB / 0.7879 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004437/0.4715, allocations: 103.9 kB / 0.788 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.4715, allocations: 7.938 kB / 0.788 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003545/0.4719, allocations: 51.56 kB / 0.7881 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.4719, allocations: 20 kB / 0.7881 GB, free: 13.8 MB / 0.5606 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001991/0.4721, allocations: 217 kB / 0.7883 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.4722, allocations: 71.16 kB / 0.7884 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.4724, allocations: 83.2 kB / 0.7885 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.4724, allocations: 4 kB / 0.7885 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4724, allocations: 0 / 0.7885 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4725, allocations: 0 / 0.7885 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007092/0.4732, allocations: 0.6257 MB / 0.7891 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.4732, allocations: 4 kB / 0.7891 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004625/0.4737, allocations: 83.89 kB / 0.7892 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.4737, allocations: 7.938 kB / 0.7892 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.4737, allocations: 15.98 kB / 0.7892 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.4737, allocations: 0 / 0.7892 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4737, allocations: 0 / 0.7892 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00146/0.4752, allocations: 0.7286 MB / 0.7899 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.4754, allocations: 192 kB / 0.7901 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.4755, allocations: 15.94 kB / 0.7901 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004112/0.4759, allocations: 27.97 kB / 0.7901 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.476, allocations: 39.95 kB / 0.7902 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.4761, allocations: 15.98 kB / 0.7902 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004613/0.4765, allocations: 431 kB / 0.7906 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4765, allocations: 0 / 0.7906 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005721/0.4771, allocations: 223.2 kB / 0.7908 GB, free: 10.95 MB / 0.5606 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 (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.0001481/0.4773, allocations: 111.2 kB / 0.7909 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001509/0.4788, allocations: 0.7854 MB / 0.7917 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/0.4788, allocations: 4.125 kB / 0.7917 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004451/0.4793, allocations: 211.8 kB / 0.7919 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008732/0.4801, allocations: 200 kB / 0.7921 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.4821, allocations: 1.205 MB / 0.7932 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.4825, allocations: 0.9139 MB / 0.7941 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.4827, allocations: 51.44 kB / 0.7942 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.4827, allocations: 0 / 0.7942 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of Templates: time 0.01154/0.4942, allocations: 8.721 MB / 0.8027 GB, free: 14.73 MB / 0.5762 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)