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.00137/0.00137, allocations: 114.9 kB / 16.42 MB, free: 6.012 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.001152/0.001152, allocations: 183.2 kB / 17.35 MB, free: 5.629 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002157/0.002157, allocations: 293.4 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9534/0.9534, allocations: 169.2 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 91.86 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.396/0.3977, allocations: 86.98 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.005158/0.4029, allocations: 3.724 MB / 0.7707 GB, free: 180 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0027/0.4057, allocations: 1.328 MB / 0.772 GB, free: 14.84 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006366/0.4063, allocations: 23.88 kB / 0.772 GB, free: 14.82 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0004505/0.4068, allocations: 126.6 kB / 0.7721 GB, free: 14.69 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0007708/0.4076, allocations: 178.5 kB / 0.7723 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.4089, allocations: 0.5899 MB / 0.7728 GB, free: 13.94 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001237/0.4102, allocations: 0.9642 MB / 0.7738 GB, free: 12.97 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00061/0.4108, allocations: 357.2 kB / 0.7741 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000591/0.4114, allocations: 374.4 kB / 0.7745 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004674/0.4119, allocations: 354 kB / 0.7748 GB, free: 11.9 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000187/0.4121, allocations: 76 kB / 0.7749 GB, free: 11.83 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001599/0.4122, allocations: 84 kB / 0.775 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.4124, allocations: 179.3 kB / 0.7751 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003765/0.4128, allocations: 381.7 kB / 0.7755 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009024/0.4137, allocations: 0.8859 MB / 0.7764 GB, free: 10.31 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4137, allocations: 0 / 0.7764 GB, free: 10.31 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.767e-06/0.4137, allocations: 4 kB / 0.7764 GB, free: 10.3 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.9e-05/0.4138, allocations: 3.938 kB / 0.7764 GB, free: 10.3 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.002492/0.4163, allocations: 1.187 MB / 0.7775 GB, free: 9.055 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.4163, allocations: 8.031 kB / 0.7776 GB, free: 9.047 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.4166, allocations: 95.8 kB / 0.7776 GB, free: 8.953 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.4178, allocations: 0.6104 MB / 0.7782 GB, free: 8.301 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.4179, allocations: 104.9 kB / 0.7783 GB, free: 8.188 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.418, allocations: 56.38 kB / 0.7784 GB, free: 8.133 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.4192, allocations: 0.6042 MB / 0.779 GB, free: 7.488 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.4193, allocations: 0 / 0.779 GB, free: 7.488 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.408e-05/0.4193, allocations: 20 kB / 0.779 GB, free: 7.469 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.4194, allocations: 12 kB / 0.779 GB, free: 7.457 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.4204, allocations: 427.6 kB / 0.7794 GB, free: 7.039 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.4234, allocations: 2.09 MB / 0.7815 GB, free: 4.859 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.4246, allocations: 0.4952 MB / 0.7819 GB, free: 4.352 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.4251, allocations: 212.8 kB / 0.7821 GB, free: 4.141 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.254e-05/0.4252, allocations: 7.984 kB / 0.7822 GB, free: 4.133 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006602/0.4258, allocations: 282.1 kB / 0.7824 GB, free: 3.844 MB / 0.545 GB Notification: Performance of pre-optimization done (n=45): time 2.415e-06/0.4259, allocations: 0 / 0.7824 GB, free: 3.844 MB / 0.545 GB Notification: Performance of matching and sorting (n=45): time 0.001506/0.4274, allocations: 0.6099 MB / 0.783 GB, free: 3.227 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.4274, allocations: 89.95 kB / 0.7831 GB, free: 3.121 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00075/0.4282, allocations: 0.6139 MB / 0.7837 GB, free: 2.496 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.106e-05/0.4283, allocations: 37.7 kB / 0.7837 GB, free: 2.453 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002718/0.4285, allocations: 356.7 kB / 0.7841 GB, free: 2.098 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.4287, allocations: 157.8 kB / 0.7842 GB, free: 1.941 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.4288, allocations: 94.16 kB / 0.7843 GB, free: 1.844 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.429, allocations: 334 kB / 0.7846 GB, free: 1.512 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.4294, allocations: 183 kB / 0.7848 GB, free: 1.328 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000541/0.43, allocations: 284.1 kB / 0.7851 GB, free: 1.016 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000956/0.4309, allocations: 470 kB / 0.7855 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.431, allocations: 0 / 0.7855 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001231/0.4322, allocations: 0.6099 MB / 0.7861 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.59e-05/0.4323, allocations: 29.7 kB / 0.7862 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.4323, allocations: 4 kB / 0.7862 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.4323, allocations: 4 kB / 0.7862 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.4328, allocations: 107.8 kB / 0.7863 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.4328, allocations: 11.98 kB / 0.7863 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004186/0.4332, allocations: 63.7 kB / 0.7863 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.4333, allocations: 23.98 kB / 0.7864 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005745/0.4339, allocations: 311.6 kB / 0.7867 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000457/0.4343, allocations: 268.2 kB / 0.7869 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008455/0.4352, allocations: 450 kB / 0.7873 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.989e-06/0.4352, allocations: 4 kB / 0.7874 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001135/0.4364, allocations: 0.5788 MB / 0.7879 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.4364, allocations: 41.75 kB / 0.788 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.4364, allocations: 0 / 0.788 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.896e-06/0.4364, allocations: 8 kB / 0.788 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004499/0.4369, allocations: 99.83 kB / 0.7881 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.4369, allocations: 4 kB / 0.7881 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003949/0.4373, allocations: 55.56 kB / 0.7881 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.4373, allocations: 16 kB / 0.7881 GB, free: 13.75 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.0001796/0.4375, allocations: 216.1 kB / 0.7883 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.4376, allocations: 71.16 kB / 0.7884 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/0.4378, allocations: 83.2 kB / 0.7885 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.4378, allocations: 0 / 0.7885 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.4378, allocations: 0 / 0.7885 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000242/0.4381, allocations: 192 kB / 0.7887 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.509e-05/0.4382, allocations: 12 kB / 0.7887 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/0.4386, allocations: 39.95 kB / 0.7887 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.4387, allocations: 35.89 kB / 0.7888 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001411/0.4401, allocations: 0.5601 MB / 0.7893 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001599/0.4417, allocations: 0.8893 MB / 0.7902 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004471/0.4422, allocations: 208.1 kB / 0.7904 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004909/0.4427, allocations: 435 kB / 0.7908 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of Backend: time 7.81e-07/0.4427, allocations: 0 / 0.7908 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001575/0.4443, allocations: 0.706 MB / 0.7915 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of SimCode: time 0.002333/0.4466, allocations: 1.671 MB / 0.7931 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of Templates: time 0.01814/0.4648, allocations: 10.52 MB / 0.8034 GB, free: 14.13 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)