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.001276/0.001276, allocations: 112.3 kB / 16.41 MB, free: 6.488 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.001174/0.001174, allocations: 185.2 kB / 17.34 MB, free: 5.73 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002545/0.002545, allocations: 291.7 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.9868/0.9868, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002787/0.002787, allocations: 99.83 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4174, allocations: 86.98 MB / 0.767 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.005251/0.4227, allocations: 3.717 MB / 0.7707 GB, free: 316 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002636/0.4253, allocations: 1.336 MB / 0.772 GB, free: 14.96 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003533/0.4257, allocations: 27.88 kB / 0.772 GB, free: 14.94 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003528/0.426, allocations: 130.6 kB / 0.7721 GB, free: 14.81 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005165/0.4266, allocations: 178.5 kB / 0.7723 GB, free: 14.63 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.4278, allocations: 0.5779 MB / 0.7728 GB, free: 14.07 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001109/0.4289, allocations: 0.9604 MB / 0.7738 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004453/0.4293, allocations: 257.4 kB / 0.774 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004369/0.4298, allocations: 374.3 kB / 0.7744 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003743/0.4302, allocations: 350.1 kB / 0.7747 GB, free: 12.14 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.4303, allocations: 80 kB / 0.7748 GB, free: 12.06 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.914e-05/0.4304, allocations: 76 kB / 0.7749 GB, free: 11.98 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.4305, allocations: 183.3 kB / 0.775 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003272/0.4309, allocations: 377.7 kB / 0.7754 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009578/0.4318, allocations: 0.8928 MB / 0.7763 GB, free: 10.54 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.4318, allocations: 0 / 0.7763 GB, free: 10.54 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4318, allocations: 0 / 0.7763 GB, free: 10.54 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.4318, allocations: 3.938 kB / 0.7763 GB, free: 10.54 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.002228/0.4341, allocations: 1.21 MB / 0.7775 GB, free: 9.266 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.4341, allocations: 8.031 kB / 0.7775 GB, free: 9.258 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.4343, allocations: 100.3 kB / 0.7776 GB, free: 9.16 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.4353, allocations: 0.6266 MB / 0.7782 GB, free: 8.492 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.4355, allocations: 101 kB / 0.7783 GB, free: 8.383 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-05/0.4356, allocations: 56.33 kB / 0.7783 GB, free: 8.328 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.4367, allocations: 0.6003 MB / 0.7789 GB, free: 7.688 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4367, allocations: 0 / 0.7789 GB, free: 7.688 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/0.4368, allocations: 24 kB / 0.7789 GB, free: 7.664 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.4368, allocations: 12 kB / 0.7789 GB, free: 7.652 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.4378, allocations: 431.6 kB / 0.7794 GB, free: 7.23 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.4408, allocations: 2.099 MB / 0.7814 GB, free: 5.043 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.442, allocations: 486.1 kB / 0.7819 GB, free: 4.559 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/0.4425, allocations: 211.2 kB / 0.7821 GB, free: 4.352 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.4425, allocations: 4 kB / 0.7821 GB, free: 4.348 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006758/0.4432, allocations: 278.2 kB / 0.7823 GB, free: 4.062 MB / 0.545 GB Notification: Performance of pre-optimization done (n=45): time 2.354e-06/0.4432, allocations: 4 kB / 0.7823 GB, free: 4.059 MB / 0.545 GB Notification: Performance of matching and sorting (n=45): time 0.001546/0.4448, allocations: 0.618 MB / 0.7829 GB, free: 3.434 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.4448, allocations: 85.95 kB / 0.783 GB, free: 3.332 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007547/0.4456, allocations: 0.61 MB / 0.7836 GB, free: 2.711 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.4456, allocations: 33.7 kB / 0.7837 GB, free: 2.672 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003089/0.446, allocations: 369.3 kB / 0.784 GB, free: 2.305 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.4461, allocations: 158.6 kB / 0.7842 GB, free: 2.148 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.4463, allocations: 106.2 kB / 0.7843 GB, free: 2.039 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.4464, allocations: 326 kB / 0.7846 GB, free: 1.715 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004762/0.4469, allocations: 179 kB / 0.7847 GB, free: 1.535 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.4474, allocations: 284.2 kB / 0.785 GB, free: 1.223 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009848/0.4484, allocations: 477.9 kB / 0.7855 GB, free: 0.7188 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4484, allocations: 3.938 kB / 0.7855 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00128/0.4497, allocations: 0.5986 MB / 0.7861 GB, free: 108 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.4497, allocations: 37.7 kB / 0.7861 GB, free: 64 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.4497, allocations: 4 kB / 0.7861 GB, free: 60 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.4498, allocations: 4 kB / 0.7861 GB, free: 56 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.4503, allocations: 112.1 kB / 0.7862 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.4503, allocations: 4 kB / 0.7862 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004064/0.4507, allocations: 67.59 kB / 0.7863 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.4508, allocations: 23.94 kB / 0.7863 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005942/0.4513, allocations: 315.6 kB / 0.7866 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004824/0.4518, allocations: 260.3 kB / 0.7868 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008875/0.4527, allocations: 454 kB / 0.7873 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.813e-06/0.4527, allocations: 0 / 0.7873 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001139/0.4539, allocations: 0.5869 MB / 0.7879 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.4539, allocations: 29.7 kB / 0.7879 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.4539, allocations: 4 kB / 0.7879 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.623e-06/0.4539, allocations: 4 kB / 0.7879 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/0.4544, allocations: 107.8 kB / 0.788 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.4544, allocations: 4 kB / 0.788 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.4547, allocations: 55.89 kB / 0.7881 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.395e-05/0.4548, allocations: 24 kB / 0.7881 GB, free: 13.95 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.0001981/0.455, allocations: 212.1 kB / 0.7883 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.4551, allocations: 83.42 kB / 0.7884 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001774/0.4553, allocations: 83.2 kB / 0.7884 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.4553, allocations: 4 kB / 0.7884 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4553, allocations: 0 / 0.7884 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4553, allocations: 0 / 0.7884 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007313/0.456, allocations: 0.6219 MB / 0.789 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.456, allocations: 4 kB / 0.789 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000481/0.4565, allocations: 79.89 kB / 0.7891 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.4565, allocations: 7.938 kB / 0.7891 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.4565, allocations: 15.98 kB / 0.7891 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4565, allocations: 0 / 0.7891 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.4565, allocations: 0 / 0.7891 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.4581, allocations: 0.7368 MB / 0.7899 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.4584, allocations: 188.6 kB / 0.79 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.542e-05/0.4585, allocations: 12 kB / 0.7901 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/0.4589, allocations: 35.97 kB / 0.7901 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.801e-05/0.459, allocations: 31.95 kB / 0.7901 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.933e-05/0.459, allocations: 19.97 kB / 0.7901 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005398/0.4595, allocations: 431 kB / 0.7906 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.4595, allocations: 0 / 0.7906 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006579/0.4602, allocations: 219.5 kB / 0.7908 GB, free: 11.09 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.0001748/0.4604, allocations: 119.1 kB / 0.7909 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00173/0.4621, allocations: 0.7502 MB / 0.7916 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4621, allocations: 0 / 0.7916 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004802/0.4626, allocations: 195.8 kB / 0.7918 GB, free: 10 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009138/0.4635, allocations: 211.1 kB / 0.792 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.4656, allocations: 1.205 MB / 0.7932 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.4662, allocations: 0.9178 MB / 0.7941 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000363/0.4665, allocations: 93.12 kB / 0.7942 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.4667, allocations: 47.44 kB / 0.7942 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of SimCode: time 6.21e-07/0.4667, allocations: 0 / 0.7942 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of Templates: time 0.01523/0.4819, allocations: 7.685 MB / 0.8017 GB, free: 15.89 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)