Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",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.0007134/0.0007134, allocations: 93.03 kB / 16.02 MB, free: 84 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.0007474/0.0007473, allocations: 175.8 kB / 16.92 MB, free: 6.68 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: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6356/0.6356, allocations: 115.5 MB / 407.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002764, allocations: 8 kB / 495.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 77.54 MB / 0.56 GB, free: 8.922 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.003847/0.1249, allocations: 3.69 MB / 0.5636 GB, free: 5.211 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.127, allocations: 1.266 MB / 0.5649 GB, free: 3.938 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003823/0.1274, allocations: 23.94 kB / 0.5649 GB, free: 3.914 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002696/0.1277, allocations: 91.2 kB / 0.565 GB, free: 3.824 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003776/0.1281, allocations: 146.8 kB / 0.5651 GB, free: 3.68 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007526/0.1289, allocations: 388.5 kB / 0.5655 GB, free: 3.309 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008351/0.1297, allocations: 0.8695 MB / 0.5663 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005814/0.1303, allocations: 434 kB / 0.5668 GB, free: 1.992 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002953/0.1306, allocations: 234.7 kB / 0.567 GB, free: 1.762 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.1309, allocations: 250.4 kB / 0.5672 GB, free: 1.516 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.131, allocations: 27.94 kB / 0.5672 GB, free: 1.488 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.161e-05/0.131, allocations: 28 kB / 0.5673 GB, free: 1.461 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.72e-05/0.1311, allocations: 99.47 kB / 0.5674 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002494/0.1314, allocations: 331.8 kB / 0.5677 GB, free: 1.031 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006866/0.1321, allocations: 0.9615 MB / 0.5686 GB, free: 68 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1321, allocations: 0 / 0.5686 GB, free: 68 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1321, allocations: 0 / 0.5686 GB, free: 68 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.1321, allocations: 0 / 0.5686 GB, free: 68 kB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001549/0.1337, allocations: 0.9485 MB / 0.5695 GB, free: 15.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1337, allocations: 8.031 kB / 0.5696 GB, free: 15.05 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.1338, allocations: 98.7 kB / 0.5696 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.1339, allocations: 83.98 kB / 0.5697 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007137/0.1346, allocations: 0.5572 MB / 0.5703 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.1347, allocations: 41.69 kB / 0.5703 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.942e-05/0.1348, allocations: 68.22 kB / 0.5704 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.1358, allocations: 0.6194 MB / 0.571 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.1358, allocations: 0 / 0.571 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-05/0.1359, allocations: 20 kB / 0.571 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-05/0.1359, allocations: 16 kB / 0.571 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009577/0.1369, allocations: 477 kB / 0.5715 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002604/0.1395, allocations: 2.008 MB / 0.5734 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008953/0.1404, allocations: 470.1 kB / 0.5739 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004405/0.1409, allocations: 242.1 kB / 0.5741 GB, free: 10.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.1409, allocations: 16.42 kB / 0.5741 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005459/0.1415, allocations: 265.3 kB / 0.5744 GB, free: 9.945 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 1.854e-06/0.1415, allocations: 0 / 0.5744 GB, free: 9.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001263/0.1427, allocations: 0.6002 MB / 0.575 GB, free: 9.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.1428, allocations: 55.84 kB / 0.575 GB, free: 9.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004442/0.1432, allocations: 449.9 kB / 0.5755 GB, free: 8.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.1433, allocations: 37.7 kB / 0.5755 GB, free: 8.777 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.1435, allocations: 320.3 kB / 0.5758 GB, free: 8.461 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.1436, allocations: 161.6 kB / 0.5759 GB, free: 8.301 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.1437, allocations: 57.69 kB / 0.576 GB, free: 8.238 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1438, allocations: 362.8 kB / 0.5763 GB, free: 7.875 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000399/0.1442, allocations: 173 kB / 0.5765 GB, free: 7.707 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004153/0.1447, allocations: 261.8 kB / 0.5768 GB, free: 7.426 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008008/0.1455, allocations: 460 kB / 0.5772 GB, free: 6.949 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1455, allocations: 3.938 kB / 0.5772 GB, free: 6.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001016/0.1465, allocations: 0.5818 MB / 0.5778 GB, free: 6.352 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.1466, allocations: 33.7 kB / 0.5778 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1466, allocations: 0 / 0.5778 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1466, allocations: 4 kB / 0.5778 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/0.1471, allocations: 115.8 kB / 0.5779 GB, free: 6.195 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1471, allocations: 8 kB / 0.5779 GB, free: 6.188 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003335/0.1474, allocations: 67.75 kB / 0.578 GB, free: 6.121 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/0.1475, allocations: 27.92 kB / 0.578 GB, free: 6.094 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002246/0.1477, allocations: 205.7 kB / 0.5782 GB, free: 5.883 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.367e-05/0.1478, allocations: 59.28 kB / 0.5783 GB, free: 5.824 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.1479, allocations: 69.58 kB / 0.5783 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1479, allocations: 8 kB / 0.5783 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1479, allocations: 0 / 0.5783 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1479, allocations: 0 / 0.5783 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001636/0.1496, allocations: 1.189 MB / 0.5795 GB, free: 4.508 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1496, allocations: 4 kB / 0.5795 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004504/0.15, allocations: 95.88 kB / 0.5796 GB, free: 4.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.15, allocations: 7.984 kB / 0.5796 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.1501, allocations: 8 kB / 0.5796 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1501, allocations: 4 kB / 0.5796 GB, free: 4.391 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1501, allocations: 4 kB / 0.5796 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.1514, allocations: 0.7796 MB / 0.5804 GB, free: 3.586 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/0.1515, allocations: 176.2 kB / 0.5806 GB, free: 3.395 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.362e-05/0.1516, allocations: 8 kB / 0.5806 GB, free: 3.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/0.1519, allocations: 31.97 kB / 0.5806 GB, free: 3.355 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.399e-05/0.152, allocations: 32.39 kB / 0.5806 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.152, allocations: 20 kB / 0.5806 GB, free: 3.305 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002931/0.1523, allocations: 310.9 kB / 0.5809 GB, free: 3.004 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1523, allocations: 0 / 0.5809 GB, free: 3.004 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003853/0.1527, allocations: 139.5 kB / 0.5811 GB, free: 2.867 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.001483/0.1542, allocations: 1.332 MB / 0.5824 GB, free: 1.504 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008335/0.1551, allocations: 497 kB / 0.5828 GB, free: 1.008 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1551, allocations: 0.5 kB / 0.5828 GB, free: 1.008 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003909/0.1555, allocations: 222.4 kB / 0.5831 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000708/0.1562, allocations: 141.5 kB / 0.5832 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2047/0.3609, allocations: 5.237 MB / 0.5883 GB, free: 28.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.3614, allocations: 0.8888 MB / 0.5892 GB, free: 28.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003314/0.3617, allocations: 65.28 kB / 0.5892 GB, free: 28.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003189/0.362, allocations: 217.9 kB / 0.5894 GB, free: 28.22 MB / 446.1 MB Notification: Performance of SimCode: time 1.472e-06/0.362, allocations: 0 / 0.5894 GB, free: 28.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.3865, allocations: 10.51 MB / 0.5997 GB, free: 26.79 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.3867, allocations: 211.3 kB / 0.5999 GB, free: 26.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/2.147, allocations: 3.938 kB / 0.5999 GB, free: 26.52 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)