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: "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000737/0.000737, allocations: 98.73 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007952/0.0007952, allocations: 181.7 kB / 16.92 MB, free: 6.75 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.228/1.228, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6392/0.6392, allocations: 115.5 MB / 407.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002883, allocations: 8.906 kB / 495.9 MB, free: 6.254 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1227, allocations: 77.53 MB / 0.56 GB, free: 8.934 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPID): time 0.003511/0.1262, allocations: 3.288 MB / 0.5632 GB, free: 5.625 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.1285, allocations: 1.286 MB / 0.5645 GB, free: 4.332 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003898/0.1289, allocations: 23.88 kB / 0.5645 GB, free: 4.309 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.1291, allocations: 91.11 kB / 0.5646 GB, free: 4.219 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005085/0.1297, allocations: 147 kB / 0.5648 GB, free: 4.074 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.1307, allocations: 0.5271 MB / 0.5653 GB, free: 3.559 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008862/0.1316, allocations: 0.8901 MB / 0.5661 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000482/0.1321, allocations: 337.6 kB / 0.5665 GB, free: 2.32 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003626/0.1325, allocations: 286.3 kB / 0.5667 GB, free: 2.039 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003141/0.1328, allocations: 278 kB / 0.567 GB, free: 1.766 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.021e-05/0.1329, allocations: 20 kB / 0.567 GB, free: 1.746 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.667e-05/0.1329, allocations: 20 kB / 0.567 GB, free: 1.727 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.545e-05/0.133, allocations: 111.3 kB / 0.5671 GB, free: 1.617 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002601/0.1333, allocations: 335.4 kB / 0.5675 GB, free: 1.281 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006137/0.1339, allocations: 0.7744 MB / 0.5682 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1339, allocations: 0 / 0.5682 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1339, allocations: 4 kB / 0.5682 GB, free: 0.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.1339, allocations: 4 kB / 0.5682 GB, free: 0.4961 MB / 430.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.00176/0.1357, allocations: 1.055 MB / 0.5693 GB, free: 15.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.1358, allocations: 8.031 kB / 0.5693 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.1359, allocations: 98.69 kB / 0.5694 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.136, allocations: 99.81 kB / 0.5695 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00085/0.1369, allocations: 0.5909 MB / 0.57 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.137, allocations: 101 kB / 0.5701 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.511e-05/0.1371, allocations: 52.38 kB / 0.5702 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.1382, allocations: 0.6157 MB / 0.5708 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1382, allocations: 0 / 0.5708 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.478e-05/0.1382, allocations: 24 kB / 0.5708 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1383, allocations: 12 kB / 0.5708 GB, free: 13.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009702/0.1392, allocations: 443.6 kB / 0.5712 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002657/0.1419, allocations: 2.129 MB / 0.5733 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.1431, allocations: 0.5307 MB / 0.5738 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004653/0.1436, allocations: 230.7 kB / 0.5741 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.1436, allocations: 4 kB / 0.5741 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006484/0.1443, allocations: 294.2 kB / 0.5743 GB, free: 9.969 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 1.744e-06/0.1443, allocations: 0 / 0.5743 GB, free: 9.969 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.001444/0.1458, allocations: 0.64 MB / 0.575 GB, free: 9.324 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.1458, allocations: 92.8 kB / 0.5751 GB, free: 9.215 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006554/0.1465, allocations: 0.6177 MB / 0.5757 GB, free: 8.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.1465, allocations: 29.7 kB / 0.5757 GB, free: 8.555 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.1468, allocations: 356.9 kB / 0.576 GB, free: 8.203 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.1469, allocations: 153.7 kB / 0.5762 GB, free: 8.051 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/0.147, allocations: 49.69 kB / 0.5762 GB, free: 7.996 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1471, allocations: 334 kB / 0.5765 GB, free: 7.664 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004474/0.1476, allocations: 181 kB / 0.5767 GB, free: 7.488 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005042/0.1481, allocations: 292.2 kB / 0.577 GB, free: 7.168 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009229/0.149, allocations: 497.8 kB / 0.5775 GB, free: 6.641 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.149, allocations: 0 / 0.5775 GB, free: 6.641 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001183/0.1502, allocations: 0.6177 MB / 0.5781 GB, free: 6.012 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.1503, allocations: 201.3 kB / 0.5783 GB, free: 5.773 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1503, allocations: 0 / 0.5783 GB, free: 5.773 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1504, allocations: 8 kB / 0.5783 GB, free: 5.766 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000465/0.1508, allocations: 107.9 kB / 0.5784 GB, free: 5.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.1508, allocations: 11.92 kB / 0.5784 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.1512, allocations: 71.42 kB / 0.5784 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/0.1513, allocations: 23.92 kB / 0.5785 GB, free: 5.555 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.282e-06/0.1513, allocations: 4 kB / 0.5785 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009821/0.1523, allocations: 0.5037 MB / 0.579 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.1523, allocations: 0 / 0.579 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.053e-06/0.1523, allocations: 7.984 kB / 0.579 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.1527, allocations: 112.1 kB / 0.5791 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.1528, allocations: 4 kB / 0.5791 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.1531, allocations: 59.5 kB / 0.5791 GB, free: 4.859 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.1531, allocations: 20 kB / 0.5792 GB, free: 4.84 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.0002585/0.1534, allocations: 265 kB / 0.5794 GB, free: 4.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.493e-05/0.1535, allocations: 79 kB / 0.5795 GB, free: 4.492 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001678/0.1537, allocations: 83.2 kB / 0.5796 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1537, allocations: 8 kB / 0.5796 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1537, allocations: 0 / 0.5796 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.1537, allocations: 0 / 0.5796 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006093/0.1543, allocations: 0.6296 MB / 0.5802 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1543, allocations: 0 / 0.5802 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.1548, allocations: 91.89 kB / 0.5803 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1548, allocations: 0 / 0.5803 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.1548, allocations: 15.98 kB / 0.5803 GB, free: 3.609 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1548, allocations: 0 / 0.5803 GB, free: 3.609 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1548, allocations: 0 / 0.5803 GB, free: 3.609 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.1563, allocations: 0.7628 MB / 0.581 GB, free: 2.828 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.1565, allocations: 188.2 kB / 0.5812 GB, free: 2.625 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.501e-05/0.1566, allocations: 8 kB / 0.5812 GB, free: 2.617 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.157, allocations: 43.95 kB / 0.5813 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.904e-05/0.1571, allocations: 35.95 kB / 0.5813 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.1571, allocations: 12 kB / 0.5813 GB, free: 2.527 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004674/0.1576, allocations: 435 kB / 0.5817 GB, free: 2.109 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1576, allocations: 0 / 0.5817 GB, free: 2.109 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005497/0.1582, allocations: 219.2 kB / 0.5819 GB, free: 1.895 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.001742/0.1599, allocations: 1.315 MB / 0.5832 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2136/0.3736, allocations: 0.8101 MB / 0.584 GB, free: 30.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.3736, allocations: 0.625 kB / 0.584 GB, free: 30.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005863/0.3742, allocations: 224.3 kB / 0.5842 GB, free: 30.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.3754, allocations: 179.3 kB / 0.5844 GB, free: 30.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008957/0.3843, allocations: 5.922 MB / 0.5902 GB, free: 28.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.3847, allocations: 0.9139 MB / 0.5911 GB, free: 27.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004155/0.3851, allocations: 95.08 kB / 0.5912 GB, free: 27.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000311/0.3855, allocations: 261.4 kB / 0.5914 GB, free: 27.45 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3855, allocations: 0 / 0.5914 GB, free: 27.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5151/0.9006, allocations: 13.19 MB / 0.6043 GB, free: 24.37 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/0.9008, allocations: 182.2 kB / 0.6045 GB, free: 24.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.805, allocations: 0 / 0.6045 GB, free: 24.12 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)