Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") translateModel(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.00155/0.001549, allocations: 99.16 kB / 16.52 MB, free: 6.285 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.00137/0.00137, allocations: 194.1 kB / 17.44 MB, free: 5.902 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.368/1.368, allocations: 222.9 MB / 241.1 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7306/0.7306, allocations: 115.3 MB / 406.6 MB, free: 6.398 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 59.91 kB / 493.6 MB, free: 0.7969 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4032, allocations: 76.16 MB / 0.5564 GB, free: 36.19 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPID): time 0.004411/0.4077, allocations: 3.716 MB / 0.56 GB, free: 33.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.4099, allocations: 1.296 MB / 0.5613 GB, free: 32.62 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003354/0.4102, allocations: 26.34 kB / 0.5613 GB, free: 32.61 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.4106, allocations: 92.09 kB / 0.5614 GB, free: 32.55 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004496/0.411, allocations: 140 kB / 0.5615 GB, free: 32.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009869/0.412, allocations: 0.5379 MB / 0.562 GB, free: 32.16 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008427/0.4129, allocations: 0.8893 MB / 0.5629 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005265/0.4134, allocations: 343.3 kB / 0.5632 GB, free: 31.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003764/0.4138, allocations: 322.8 kB / 0.5635 GB, free: 31.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003385/0.4141, allocations: 326.5 kB / 0.5638 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.4143, allocations: 37.31 kB / 0.5639 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.29e-05/0.4144, allocations: 37.31 kB / 0.5639 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.4145, allocations: 138.3 kB / 0.564 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.4147, allocations: 340 kB / 0.5644 GB, free: 30.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006747/0.4154, allocations: 0.6428 MB / 0.565 GB, free: 30.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.4154, allocations: 0 / 0.565 GB, free: 30.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4154, allocations: 0.5625 kB / 0.565 GB, free: 30.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.4155, allocations: 6.125 kB / 0.565 GB, free: 30.67 MB / 446.1 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.001962/0.4174, allocations: 1.173 MB / 0.5661 GB, free: 29.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.4175, allocations: 14.69 kB / 0.5662 GB, free: 29.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.4176, allocations: 94.22 kB / 0.5663 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008631/0.4185, allocations: 0.601 MB / 0.5668 GB, free: 29.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.4186, allocations: 96.86 kB / 0.5669 GB, free: 29.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-05/0.4187, allocations: 56.55 kB / 0.567 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.4198, allocations: 0.6003 MB / 0.5676 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.4198, allocations: 5 kB / 0.5676 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.383e-05/0.4199, allocations: 22.38 kB / 0.5676 GB, free: 28.96 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.4199, allocations: 16.62 kB / 0.5676 GB, free: 28.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009697/0.4209, allocations: 425 kB / 0.568 GB, free: 28.81 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.4236, allocations: 2.11 MB / 0.5701 GB, free: 27.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.4248, allocations: 0.5045 MB / 0.5706 GB, free: 27.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000484/0.4253, allocations: 219.4 kB / 0.5708 GB, free: 27.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.4253, allocations: 6.875 kB / 0.5708 GB, free: 27.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007148/0.4261, allocations: 282.2 kB / 0.5711 GB, free: 26.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 1.854e-06/0.4261, allocations: 1.469 kB / 0.5711 GB, free: 26.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.001458/0.4275, allocations: 0.6127 MB / 0.5717 GB, free: 26.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.4276, allocations: 87.31 kB / 0.5717 GB, free: 26.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000725/0.4283, allocations: 0.6095 MB / 0.5723 GB, free: 26.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.4284, allocations: 37.2 kB / 0.5724 GB, free: 26.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.4286, allocations: 356.4 kB / 0.5727 GB, free: 26.06 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.4287, allocations: 158.5 kB / 0.5729 GB, free: 25.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.4289, allocations: 91.47 kB / 0.5729 GB, free: 25.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.089e-05/0.429, allocations: 328.5 kB / 0.5733 GB, free: 25.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004701/0.4294, allocations: 180.2 kB / 0.5734 GB, free: 25.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004844/0.4299, allocations: 280.3 kB / 0.5737 GB, free: 25.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008483/0.4308, allocations: 477.3 kB / 0.5742 GB, free: 25.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4308, allocations: 5.312 kB / 0.5742 GB, free: 25.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001127/0.4319, allocations: 0.599 MB / 0.5747 GB, free: 24.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.432, allocations: 38.02 kB / 0.5748 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.432, allocations: 1.688 kB / 0.5748 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.432, allocations: 6.719 kB / 0.5748 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.4325, allocations: 103.7 kB / 0.5749 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.4325, allocations: 11.27 kB / 0.5749 GB, free: 24.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000383/0.4329, allocations: 67.7 kB / 0.575 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.4329, allocations: 24.7 kB / 0.575 GB, free: 24.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000536/0.4335, allocations: 308.3 kB / 0.5753 GB, free: 24.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004052/0.4339, allocations: 262.8 kB / 0.5755 GB, free: 24.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007695/0.4347, allocations: 453.3 kB / 0.576 GB, free: 24.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.375e-06/0.4347, allocations: 5 kB / 0.576 GB, free: 24.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001041/0.4357, allocations: 0.5794 MB / 0.5765 GB, free: 23.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.4358, allocations: 33.48 kB / 0.5766 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.4358, allocations: 6.75 kB / 0.5766 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.484e-06/0.4358, allocations: 5.406 kB / 0.5766 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.4362, allocations: 107.7 kB / 0.5767 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.4363, allocations: 6.031 kB / 0.5767 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.4366, allocations: 51.34 kB / 0.5767 GB, free: 23.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.4367, allocations: 23.12 kB / 0.5768 GB, free: 23.71 MB / 446.1 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 0.0001774/0.4368, allocations: 213.8 kB / 0.577 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.437, allocations: 73.44 kB / 0.577 GB, free: 23.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001654/0.4371, allocations: 80.73 kB / 0.5771 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.4371, allocations: 4.031 kB / 0.5771 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/0.4372, allocations: 1.125 kB / 0.5771 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.4372, allocations: 2.625 kB / 0.5771 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008604/0.4381, allocations: 0.6268 MB / 0.5777 GB, free: 23.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4381, allocations: 1.5 kB / 0.5777 GB, free: 23.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/0.4386, allocations: 82.64 kB / 0.5778 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.4386, allocations: 2.031 kB / 0.5778 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.4386, allocations: 13.19 kB / 0.5778 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.4386, allocations: 2 kB / 0.5778 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4386, allocations: 3.938 kB / 0.5778 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.4402, allocations: 0.7271 MB / 0.5785 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.4404, allocations: 188.1 kB / 0.5787 GB, free: 22.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.783e-05/0.4405, allocations: 12.88 kB / 0.5787 GB, free: 22.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/0.4408, allocations: 35.14 kB / 0.5788 GB, free: 22.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.847e-05/0.441, allocations: 33.72 kB / 0.5788 GB, free: 22.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.896e-05/0.441, allocations: 13.34 kB / 0.5788 GB, free: 22.49 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004858/0.4415, allocations: 433 kB / 0.5792 GB, free: 22.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4415, allocations: 0 / 0.5792 GB, free: 22.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005934/0.4421, allocations: 214.6 kB / 0.5794 GB, free: 22.25 MB / 446.1 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.0001193/0.4422, allocations: 114.7 kB / 0.5795 GB, free: 22.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.4437, allocations: 0.7864 MB / 0.5803 GB, free: 21.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4437, allocations: 1.438 kB / 0.5803 GB, free: 21.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004529/0.4442, allocations: 212.1 kB / 0.5805 GB, free: 21.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008871/0.4451, allocations: 206.9 kB / 0.5807 GB, free: 21.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.4472, allocations: 1.482 MB / 0.5822 GB, free: 20.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.4476, allocations: 0.913 MB / 0.583 GB, free: 19.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.4478, allocations: 49.97 kB / 0.5831 GB, free: 19.98 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4478, allocations: 0 / 0.5831 GB, free: 19.98 MB / 446.1 MB Notification: Performance of Templates: time 0.01242/0.4602, allocations: 8.637 MB / 0.5915 GB, free: 16.07 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.sim & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)