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.7591/0.7591, allocations: 143.4 MB / 159.2 MB, free: 4.891 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.001223/0.001223, allocations: 190 kB / 191.9 MB, free: 5.73 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.326/1.326, allocations: 222.9 MB / 447.3 MB, free: 5.859 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.0009741/0.0009741, allocations: 107.8 kB / 0.517 GB, free: 3.734 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001873/0.001873, allocations: 281.4 kB / 0.5973 GB, free: 49.4 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 83.88 kB / 0.6885 GB, free: 3.875 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2862, allocations: 81.3 MB / 0.7679 GB, free: 27.69 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.003846/0.29, allocations: 3.737 MB / 0.7716 GB, free: 23.94 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.2917, allocations: 1.297 MB / 0.7728 GB, free: 22.64 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002337/0.2919, allocations: 23.88 kB / 0.7729 GB, free: 22.61 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002378/0.2922, allocations: 95.09 kB / 0.7729 GB, free: 22.52 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003902/0.2926, allocations: 143 kB / 0.7731 GB, free: 22.38 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000851/0.2934, allocations: 0.5322 MB / 0.7736 GB, free: 21.86 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.294, allocations: 0.8979 MB / 0.7745 GB, free: 20.95 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003575/0.2944, allocations: 348.2 kB / 0.7748 GB, free: 20.6 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.2946, allocations: 326.3 kB / 0.7751 GB, free: 20.28 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.2948, allocations: 326 kB / 0.7754 GB, free: 19.96 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 7.365e-05/0.2949, allocations: 36 kB / 0.7755 GB, free: 19.93 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.714e-05/0.295, allocations: 40 kB / 0.7755 GB, free: 19.89 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 8.621e-05/0.2951, allocations: 135.3 kB / 0.7756 GB, free: 19.75 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.2953, allocations: 337.7 kB / 0.776 GB, free: 19.42 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004159/0.2957, allocations: 0.8134 MB / 0.7768 GB, free: 18.61 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2957, allocations: 4 kB / 0.7768 GB, free: 18.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2957, allocations: 3.938 kB / 0.7768 GB, free: 18.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.2957, allocations: 0 / 0.7768 GB, free: 18.6 MB / 458.7 MB 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.001587/0.2973, allocations: 1.176 MB / 0.7779 GB, free: 17.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.858e-05/0.2973, allocations: 12.03 kB / 0.7779 GB, free: 17.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.2975, allocations: 95.81 kB / 0.778 GB, free: 17.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006982/0.2982, allocations: 0.5986 MB / 0.7786 GB, free: 16.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.563e-05/0.2982, allocations: 96.95 kB / 0.7787 GB, free: 16.51 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.2983, allocations: 52.38 kB / 0.7787 GB, free: 16.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008377/0.2992, allocations: 0.6003 MB / 0.7793 GB, free: 15.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.2992, allocations: 0 / 0.7793 GB, free: 15.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/0.2992, allocations: 27.94 kB / 0.7794 GB, free: 15.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.2992, allocations: 16 kB / 0.7794 GB, free: 15.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008336/0.3001, allocations: 419.7 kB / 0.7798 GB, free: 15.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.3021, allocations: 2.121 MB / 0.7818 GB, free: 13.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.3032, allocations: 0.4956 MB / 0.7823 GB, free: 12.65 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003904/0.3036, allocations: 213.7 kB / 0.7825 GB, free: 12.44 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.3036, allocations: 8 kB / 0.7825 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005269/0.3041, allocations: 281.9 kB / 0.7828 GB, free: 12.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 1.764e-06/0.3041, allocations: 0 / 0.7828 GB, free: 12.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.001246/0.3054, allocations: 0.6161 MB / 0.7834 GB, free: 11.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.3054, allocations: 84.86 kB / 0.7835 GB, free: 11.42 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004877/0.3059, allocations: 0.6101 MB / 0.7841 GB, free: 10.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.306, allocations: 37.7 kB / 0.7841 GB, free: 10.76 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.3061, allocations: 356.7 kB / 0.7845 GB, free: 10.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.452e-05/0.3062, allocations: 153.8 kB / 0.7846 GB, free: 10.26 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.3063, allocations: 98.14 kB / 0.7847 GB, free: 10.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.148e-05/0.3064, allocations: 326 kB / 0.785 GB, free: 9.832 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003899/0.3068, allocations: 183 kB / 0.7852 GB, free: 9.648 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004137/0.3072, allocations: 280.2 kB / 0.7855 GB, free: 9.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000752/0.308, allocations: 477.9 kB / 0.7859 GB, free: 8.836 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.308, allocations: 3.938 kB / 0.7859 GB, free: 8.832 MB / 458.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000976/0.309, allocations: 0.5944 MB / 0.7865 GB, free: 8.223 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.309, allocations: 37.64 kB / 0.7865 GB, free: 8.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.309, allocations: 0 / 0.7865 GB, free: 8.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.309, allocations: 8 kB / 0.7865 GB, free: 8.172 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004315/0.3095, allocations: 108.2 kB / 0.7866 GB, free: 8.066 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.3095, allocations: 7.938 kB / 0.7866 GB, free: 8.059 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.3098, allocations: 67.34 kB / 0.7867 GB, free: 7.992 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.127e-05/0.3099, allocations: 20 kB / 0.7867 GB, free: 7.973 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000449/0.3103, allocations: 313.2 kB / 0.787 GB, free: 7.664 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003699/0.3107, allocations: 264.3 kB / 0.7873 GB, free: 7.371 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006711/0.3114, allocations: 454 kB / 0.7877 GB, free: 6.887 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.304e-06/0.3114, allocations: 0 / 0.7877 GB, free: 6.887 MB / 458.7 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009137/0.3123, allocations: 0.5787 MB / 0.7883 GB, free: 6.297 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3123, allocations: 33.7 kB / 0.7883 GB, free: 6.258 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3123, allocations: 7.984 kB / 0.7883 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.198e-06/0.3124, allocations: 4 kB / 0.7883 GB, free: 6.246 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.3128, allocations: 103.8 kB / 0.7884 GB, free: 6.145 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3128, allocations: 8 kB / 0.7884 GB, free: 6.137 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.3131, allocations: 59.81 kB / 0.7885 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.3131, allocations: 20 kB / 0.7885 GB, free: 6.059 MB / 458.7 MB 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 9.587e-05/0.3132, allocations: 215 kB / 0.7887 GB, free: 5.844 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.979e-05/0.3133, allocations: 71.09 kB / 0.7888 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001331/0.3135, allocations: 83.2 kB / 0.7889 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3135, allocations: 7.984 kB / 0.7889 GB, free: 5.676 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3135, allocations: 0 / 0.7889 GB, free: 5.676 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3135, allocations: 4 kB / 0.7889 GB, free: 5.672 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.3139, allocations: 0.6335 MB / 0.7895 GB, free: 4.988 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3139, allocations: 0 / 0.7895 GB, free: 4.988 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004251/0.3144, allocations: 83.83 kB / 0.7896 GB, free: 4.906 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3144, allocations: 4 kB / 0.7896 GB, free: 4.902 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.3144, allocations: 7.984 kB / 0.7896 GB, free: 4.895 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3144, allocations: 4 kB / 0.7896 GB, free: 4.891 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3144, allocations: 3.938 kB / 0.7896 GB, free: 4.887 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006255/0.3207, allocations: 4.352 MB / 0.7938 GB, free: 400 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.3209, allocations: 192.2 kB / 0.794 GB, free: 188 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.3209, allocations: 11.92 kB / 0.794 GB, free: 176 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003734/0.3213, allocations: 35.97 kB / 0.7941 GB, free: 140 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.3214, allocations: 27.95 kB / 0.7941 GB, free: 112 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-05/0.3214, allocations: 19.98 kB / 0.7941 GB, free: 92 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004322/0.3219, allocations: 431.1 kB / 0.7945 GB, free: 15.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3219, allocations: 0 / 0.7945 GB, free: 15.67 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007962/0.3227, allocations: 307.3 kB / 0.7948 GB, free: 15.37 MB / 474.7 MB 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.000108/0.3228, allocations: 111.1 kB / 0.7949 GB, free: 15.25 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.3242, allocations: 0.7889 MB / 0.7957 GB, free: 14.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3242, allocations: 0 / 0.7957 GB, free: 14.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004619/0.3247, allocations: 220.2 kB / 0.7959 GB, free: 14.22 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008343/0.3255, allocations: 184.6 kB / 0.7961 GB, free: 14.04 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.3275, allocations: 1.733 MB / 0.7978 GB, free: 12.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.3279, allocations: 0.9263 MB / 0.7987 GB, free: 11.31 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0003925/0.3283, allocations: 105.1 kB / 0.7988 GB, free: 11.21 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.3285, allocations: 51.44 kB / 0.7988 GB, free: 11.16 MB / 474.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3285, allocations: 0 / 0.7988 GB, free: 11.16 MB / 474.7 MB Notification: Performance of Templates: time 0.01284/0.3413, allocations: 8.365 MB / 0.807 GB, free: 2.883 MB / 474.7 MB 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)