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.005133/0.005133, allocations: 99.52 kB / 15.73 MB, free: 6.043 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.001241/0.001241, allocations: 201.8 kB / 16.68 MB, free: 5.961 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.265/1.265, 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.002053/0.002053, allocations: 283.1 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9254/0.9254, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 99.84 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1393, allocations: 86.98 MB / 0.7664 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.004347/0.1437, allocations: 3.71 MB / 0.77 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001977/0.1457, allocations: 1.34 MB / 0.7713 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.146, allocations: 27.88 kB / 0.7713 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.1463, allocations: 126.6 kB / 0.7714 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004412/0.1467, allocations: 172.5 kB / 0.7716 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.1477, allocations: 0.5802 MB / 0.7722 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008396/0.1486, allocations: 0.972 MB / 0.7731 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004399/0.149, allocations: 349.5 kB / 0.7734 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003554/0.1494, allocations: 370.4 kB / 0.7738 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.1497, allocations: 354.1 kB / 0.7741 GB, free: 480 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.1498, allocations: 80 kB / 0.7742 GB, free: 400 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.466e-05/0.1499, allocations: 80 kB / 0.7743 GB, free: 320 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1501, allocations: 191.2 kB / 0.7745 GB, free: 128 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.2853/0.4354, allocations: 367.4 kB / 0.7748 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009606/0.4364, allocations: 0.8851 MB / 0.7757 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.4364, allocations: 1.75 kB / 0.7757 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4364, allocations: 0 / 0.7757 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.4364, allocations: 0 / 0.7757 GB, free: 9.949 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.001843/0.4382, allocations: 1.182 MB / 0.7768 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.4383, allocations: 10.09 kB / 0.7769 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.4384, allocations: 93.83 kB / 0.7769 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009014/0.4393, allocations: 0.6207 MB / 0.7775 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-05/0.4394, allocations: 100.9 kB / 0.7776 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.967e-05/0.4395, allocations: 52.59 kB / 0.7777 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.4406, allocations: 0.6043 MB / 0.7783 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.4406, allocations: 2.656 kB / 0.7783 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.621e-05/0.4407, allocations: 22.31 kB / 0.7783 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.4407, allocations: 12.75 kB / 0.7783 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000949/0.4417, allocations: 423.4 kB / 0.7787 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.444, allocations: 2.098 MB / 0.7808 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.4451, allocations: 497.1 kB / 0.7812 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000426/0.4456, allocations: 229.2 kB / 0.7815 GB, free: 7.652 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.4456, allocations: 6.578 kB / 0.7815 GB, free: 7.652 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005683/0.4462, allocations: 275.6 kB / 0.7817 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=45): time 1.733e-06/0.4462, allocations: 0 / 0.7817 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of matching and sorting (n=45): time 0.001369/0.4476, allocations: 0.6139 MB / 0.7823 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.4476, allocations: 92.98 kB / 0.7824 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006332/0.4483, allocations: 0.6118 MB / 0.783 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.4483, allocations: 36.55 kB / 0.7831 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.4485, allocations: 355.3 kB / 0.7834 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.623e-05/0.4486, allocations: 154.1 kB / 0.7835 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.4487, allocations: 97.8 kB / 0.7836 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.428e-05/0.4488, allocations: 325.6 kB / 0.7839 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004221/0.4492, allocations: 182.9 kB / 0.7841 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000451/0.4497, allocations: 275.7 kB / 0.7844 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008504/0.4505, allocations: 479.3 kB / 0.7848 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.4505, allocations: 1.25 kB / 0.7848 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001121/0.4517, allocations: 0.5997 MB / 0.7854 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.4517, allocations: 35.44 kB / 0.7855 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.4517, allocations: 4.469 kB / 0.7855 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.4517, allocations: 8.938 kB / 0.7855 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004859/0.4522, allocations: 109.4 kB / 0.7856 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.4522, allocations: 8.188 kB / 0.7856 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/0.4526, allocations: 63.38 kB / 0.7856 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.4527, allocations: 20.7 kB / 0.7857 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004865/0.4532, allocations: 308.2 kB / 0.786 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003952/0.4536, allocations: 268.8 kB / 0.7862 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007151/0.4543, allocations: 458.5 kB / 0.7867 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.833e-06/0.4543, allocations: 0 / 0.7867 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009587/0.4553, allocations: 0.5764 MB / 0.7872 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.4553, allocations: 38.08 kB / 0.7873 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.4553, allocations: 2.812 kB / 0.7873 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.47e-06/0.4553, allocations: 5.891 kB / 0.7873 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.4557, allocations: 101.8 kB / 0.7874 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.4558, allocations: 17.09 kB / 0.7874 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000358/0.4561, allocations: 56.33 kB / 0.7874 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.4562, allocations: 18.03 kB / 0.7874 GB, free: 4.426 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.0001073/0.4563, allocations: 217.5 kB / 0.7877 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.76e-05/0.4563, allocations: 69.47 kB / 0.7877 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.4565, allocations: 81.33 kB / 0.7878 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4565, allocations: 5.688 kB / 0.7878 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4565, allocations: 4.75 kB / 0.7878 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4565, allocations: 1.969 kB / 0.7878 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005714/0.4571, allocations: 0.6259 MB / 0.7884 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4571, allocations: 0 / 0.7884 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.4576, allocations: 84.2 kB / 0.7885 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.4576, allocations: 2.141 kB / 0.7885 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.4576, allocations: 8.875 kB / 0.7885 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.4576, allocations: 2.359 kB / 0.7885 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4576, allocations: 3.281 kB / 0.7885 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.459, allocations: 0.7299 MB / 0.7892 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.4592, allocations: 195.9 kB / 0.7894 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.838e-05/0.4592, allocations: 10.94 kB / 0.7894 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.4597, allocations: 34.16 kB / 0.7895 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.151e-05/0.4598, allocations: 29.44 kB / 0.7895 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.4598, allocations: 16.16 kB / 0.7895 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004195/0.4602, allocations: 435 kB / 0.7899 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4602, allocations: 0 / 0.7899 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005342/0.4608, allocations: 213.6 kB / 0.7901 GB, free: 2.984 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.0001051/0.4609, allocations: 120 kB / 0.7902 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.4622, allocations: 0.7878 MB / 0.791 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4623, allocations: 0 / 0.791 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004252/0.4627, allocations: 209.3 kB / 0.7912 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008425/0.4635, allocations: 209.5 kB / 0.7914 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.4652, allocations: 1.175 MB / 0.7925 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.4655, allocations: 0.9207 MB / 0.7934 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003415/0.4658, allocations: 95.14 kB / 0.7935 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.466, allocations: 48.95 kB / 0.7936 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.466, allocations: 0 / 0.7936 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of Templates: time 0.01476/0.4807, allocations: 7.863 MB / 0.8013 GB, free: 0.5391 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)