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.005367/0.005367, allocations: 102.1 kB / 15.73 MB, free: 6.051 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.001237/0.001237, allocations: 196.3 kB / 16.67 MB, free: 5.977 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002094/0.002094, allocations: 286.8 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9375/0.9375, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 100.2 kB / 0.6814 GB, free: 15.55 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1466, allocations: 86.97 MB / 0.7664 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.004441/0.1511, allocations: 3.717 MB / 0.77 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002058/0.1532, allocations: 1.332 MB / 0.7713 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000288/0.1535, allocations: 27.81 kB / 0.7713 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003331/0.1538, allocations: 122.7 kB / 0.7714 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005001/0.1543, allocations: 178.5 kB / 0.7716 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.1555, allocations: 0.572 MB / 0.7722 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009828/0.1565, allocations: 0.972 MB / 0.7731 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/0.157, allocations: 353.5 kB / 0.7734 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004785/0.1575, allocations: 370.4 kB / 0.7738 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.1579, allocations: 350.1 kB / 0.7741 GB, free: 500 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.158, allocations: 80 kB / 0.7742 GB, free: 420 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.1581, allocations: 80 kB / 0.7743 GB, free: 340 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.1583, allocations: 191.2 kB / 0.7745 GB, free: 148 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.3014/0.4597, allocations: 372.5 kB / 0.7748 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000972/0.4607, allocations: 0.8835 MB / 0.7757 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4607, allocations: 1.781 kB / 0.7757 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4607, allocations: 0 / 0.7757 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.902e-05/0.4607, allocations: 0 / 0.7757 GB, free: 9.957 MB / 0.5606 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.001855/0.4626, allocations: 1.183 MB / 0.7768 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.4627, allocations: 9.719 kB / 0.7768 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.4628, allocations: 97.22 kB / 0.7769 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009098/0.4637, allocations: 0.6225 MB / 0.7775 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-05/0.4638, allocations: 97.58 kB / 0.7776 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.971e-05/0.4639, allocations: 50.55 kB / 0.7777 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.465, allocations: 0.6027 MB / 0.7783 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.465, allocations: 5.438 kB / 0.7783 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.304e-05/0.4651, allocations: 19.61 kB / 0.7783 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.4651, allocations: 13.81 kB / 0.7783 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009487/0.4661, allocations: 427.1 kB / 0.7787 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0023/0.4684, allocations: 2.097 MB / 0.7808 GB, free: 7.699 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.4695, allocations: 0.4892 MB / 0.7812 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004295/0.47, allocations: 222.7 kB / 0.7815 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.47, allocations: 8.391 kB / 0.7815 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005799/0.4706, allocations: 277.6 kB / 0.7817 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=45): time 1.904e-06/0.4706, allocations: 1.422 kB / 0.7817 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of matching and sorting (n=45): time 0.001358/0.472, allocations: 0.6116 MB / 0.7823 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.472, allocations: 90.11 kB / 0.7824 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005959/0.4726, allocations: 0.6143 MB / 0.783 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.4727, allocations: 36.11 kB / 0.7831 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.4728, allocations: 356.8 kB / 0.7834 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.721e-05/0.4729, allocations: 156.7 kB / 0.7835 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.4731, allocations: 97.61 kB / 0.7836 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.096e-05/0.4731, allocations: 325.8 kB / 0.7839 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004208/0.4736, allocations: 179.8 kB / 0.7841 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.474, allocations: 282.4 kB / 0.7844 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008261/0.4748, allocations: 475.6 kB / 0.7848 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4749, allocations: 0 / 0.7848 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001103/0.476, allocations: 0.6017 MB / 0.7854 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.476, allocations: 33.16 kB / 0.7855 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.476, allocations: 3.906 kB / 0.7855 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.476, allocations: 6.516 kB / 0.7855 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.4765, allocations: 110.5 kB / 0.7856 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.4765, allocations: 11.7 kB / 0.7856 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.4769, allocations: 60.58 kB / 0.7856 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.362e-05/0.4769, allocations: 18.05 kB / 0.7857 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000474/0.4774, allocations: 312.2 kB / 0.786 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003836/0.4778, allocations: 264.4 kB / 0.7862 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006951/0.4785, allocations: 459.5 kB / 0.7866 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.545e-06/0.4785, allocations: 3.75 kB / 0.7867 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.000943/0.4795, allocations: 0.5769 MB / 0.7872 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.4795, allocations: 32.16 kB / 0.7872 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.4795, allocations: 3.609 kB / 0.7873 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.68e-06/0.4795, allocations: 5.5 kB / 0.7873 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004162/0.4799, allocations: 104.1 kB / 0.7874 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.48, allocations: 4.219 kB / 0.7874 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003526/0.4803, allocations: 61.27 kB / 0.7874 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.4804, allocations: 24.97 kB / 0.7874 GB, free: 4.441 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.0001258/0.4805, allocations: 210.7 kB / 0.7876 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.952e-05/0.4806, allocations: 78.17 kB / 0.7877 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001432/0.4807, allocations: 81.28 kB / 0.7878 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.4807, allocations: 6.719 kB / 0.7878 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4807, allocations: 0.7031 kB / 0.7878 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4808, allocations: 2.297 kB / 0.7878 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005922/0.4814, allocations: 0.6318 MB / 0.7884 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4814, allocations: 0 / 0.7884 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004311/0.4818, allocations: 82.97 kB / 0.7885 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.4818, allocations: 2.938 kB / 0.7885 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.4818, allocations: 8.281 kB / 0.7885 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4818, allocations: 1.531 kB / 0.7885 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4819, allocations: 1.062 kB / 0.7885 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.4832, allocations: 0.7302 MB / 0.7892 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.4833, allocations: 192.6 kB / 0.7894 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.67e-05/0.4834, allocations: 11.06 kB / 0.7894 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.4838, allocations: 36.91 kB / 0.7895 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/0.4839, allocations: 28.98 kB / 0.7895 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.484, allocations: 19 kB / 0.7895 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004179/0.4844, allocations: 431 kB / 0.7899 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4844, allocations: 0 / 0.7899 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005475/0.485, allocations: 215.4 kB / 0.7901 GB, free: 3.004 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.0001034/0.4851, allocations: 119.2 kB / 0.7902 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001373/0.4864, allocations: 0.7879 MB / 0.791 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4865, allocations: 0 / 0.791 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.4869, allocations: 212.2 kB / 0.7912 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008486/0.4877, allocations: 209.3 kB / 0.7914 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.4894, allocations: 1.177 MB / 0.7926 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.4897, allocations: 0.9166 MB / 0.7934 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003531/0.4901, allocations: 92.67 kB / 0.7935 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.4902, allocations: 48.59 kB / 0.7936 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of SimCode: time 3.71e-07/0.4902, allocations: 0 / 0.7936 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of Templates: time 0.01585/0.5061, allocations: 7.674 MB / 0.8011 GB, free: 0.6211 MB / 0.5606 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)