Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.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.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",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.0009537/0.0009537, allocations: 98.58 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.001264/0.001264, allocations: 182.3 kB / 16.92 MB, free: 6.773 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.267/1.267, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6782/0.6782, allocations: 115.5 MB / 407.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002809/0.0002809, allocations: 8 kB / 496 MB, free: 6.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1249, allocations: 77.53 MB / 0.56 GB, free: 8.902 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003153/0.1281, allocations: 2.764 MB / 0.5627 GB, free: 6.121 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1296, allocations: 0.9117 MB / 0.5636 GB, free: 5.203 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.1298, allocations: 11.94 kB / 0.5636 GB, free: 5.191 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.13, allocations: 55.5 kB / 0.5637 GB, free: 5.137 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002069/0.1302, allocations: 83.41 kB / 0.5638 GB, free: 5.055 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.1308, allocations: 217 kB / 0.564 GB, free: 4.848 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005125/0.1313, allocations: 0.5075 MB / 0.5645 GB, free: 4.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003907/0.1317, allocations: 243.3 kB / 0.5647 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000212/0.1319, allocations: 147 kB / 0.5648 GB, free: 3.953 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.1321, allocations: 155 kB / 0.565 GB, free: 3.801 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.534e-05/0.1322, allocations: 12 kB / 0.565 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.981e-05/0.1322, allocations: 12 kB / 0.565 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.206e-05/0.1323, allocations: 71.55 kB / 0.5651 GB, free: 3.707 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.1325, allocations: 204.5 kB / 0.5653 GB, free: 3.5 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.1329, allocations: 0.5255 MB / 0.5658 GB, free: 2.973 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1329, allocations: 4 kB / 0.5658 GB, free: 2.969 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1329, allocations: 4 kB / 0.5658 GB, free: 2.965 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.133, allocations: 0 / 0.5658 GB, free: 2.965 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001085/0.134, allocations: 0.6843 MB / 0.5665 GB, free: 2.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1341, allocations: 12.03 kB / 0.5665 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.565e-05/0.1342, allocations: 78.72 kB / 0.5666 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.1343, allocations: 52.38 kB / 0.5666 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.1349, allocations: 412.5 kB / 0.567 GB, free: 1.637 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.1349, allocations: 29.38 kB / 0.567 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.135, allocations: 44.36 kB / 0.5671 GB, free: 1.566 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006703/0.1357, allocations: 401.7 kB / 0.5675 GB, free: 1.156 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1357, allocations: 0 / 0.5675 GB, free: 1.156 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.1357, allocations: 12 kB / 0.5675 GB, free: 1.145 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.1357, allocations: 12 kB / 0.5675 GB, free: 1.133 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005825/0.1363, allocations: 271.8 kB / 0.5677 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.1381, allocations: 1.336 MB / 0.569 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006892/0.1388, allocations: 310.6 kB / 0.5693 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.1391, allocations: 136.8 kB / 0.5695 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.1391, allocations: 4 kB / 0.5695 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003622/0.1395, allocations: 178 kB / 0.5696 GB, free: 14.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=33): time 3.406e-06/0.1395, allocations: 0 / 0.5696 GB, free: 14.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=33): time 0.0008118/0.1403, allocations: 387.5 kB / 0.57 GB, free: 14.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.1404, allocations: 85.11 kB / 0.5701 GB, free: 14.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.1407, allocations: 345.6 kB / 0.5704 GB, free: 13.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.1408, allocations: 41.69 kB / 0.5705 GB, free: 13.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.1409, allocations: 229 kB / 0.5707 GB, free: 13.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.003e-05/0.141, allocations: 106.5 kB / 0.5708 GB, free: 13.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-05/0.1411, allocations: 45.69 kB / 0.5708 GB, free: 13.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1413, allocations: 350.7 kB / 0.5712 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.1415, allocations: 104.7 kB / 0.5713 GB, free: 13.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002774/0.1418, allocations: 172.6 kB / 0.5714 GB, free: 12.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004975/0.1423, allocations: 260.5 kB / 0.5717 GB, free: 12.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1423, allocations: 7.875 kB / 0.5717 GB, free: 12.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006425/0.143, allocations: 358.4 kB / 0.572 GB, free: 12.26 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.143, allocations: 8 kB / 0.572 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.143, allocations: 3.938 kB / 0.572 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.143, allocations: 4 kB / 0.572 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.1433, allocations: 64.09 kB / 0.5721 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.1433, allocations: 7.984 kB / 0.5721 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.1435, allocations: 43.73 kB / 0.5721 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.1436, allocations: 12 kB / 0.5722 GB, free: 12.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.0001823/0.1437, allocations: 173.7 kB / 0.5723 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.064e-05/0.1438, allocations: 43.53 kB / 0.5724 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.029e-05/0.1439, allocations: 40.25 kB / 0.5724 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1439, allocations: 4 kB / 0.5724 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1439, allocations: 0 / 0.5724 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.1439, allocations: 3.984 kB / 0.5724 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.145, allocations: 0.8145 MB / 0.5732 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1451, allocations: 3.984 kB / 0.5732 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.1453, allocations: 47.92 kB / 0.5733 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.1453, allocations: 0 / 0.5733 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.1454, allocations: 15.97 kB / 0.5733 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1454, allocations: 0 / 0.5733 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1454, allocations: 0 / 0.5733 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008438/0.1462, allocations: 0.5222 MB / 0.5738 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.1464, allocations: 140.6 kB / 0.5739 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.511e-05/0.1464, allocations: 8 kB / 0.5739 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.1466, allocations: 19.98 kB / 0.5739 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-05/0.1467, allocations: 32.02 kB / 0.574 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.1467, allocations: 8 kB / 0.574 GB, free: 10.15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002453/0.147, allocations: 247.1 kB / 0.5742 GB, free: 9.914 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.147, allocations: 4 kB / 0.5742 GB, free: 9.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003443/0.1474, allocations: 87.59 kB / 0.5743 GB, free: 9.824 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001106/0.1485, allocations: 1.064 MB / 0.5753 GB, free: 8.734 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.149, allocations: 280.3 kB / 0.5756 GB, free: 8.461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.149, allocations: 0 / 0.5756 GB, free: 8.461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.1493, allocations: 135.8 kB / 0.5757 GB, free: 8.328 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.1498, allocations: 79.28 kB / 0.5758 GB, free: 8.254 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/0.1547, allocations: 3.688 MB / 0.5794 GB, free: 4.445 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.1551, allocations: 0.8191 MB / 0.5802 GB, free: 3.602 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001804/0.1553, allocations: 47.25 kB / 0.5803 GB, free: 3.551 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.1555, allocations: 143.4 kB / 0.5804 GB, free: 3.41 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1555, allocations: 0 / 0.5804 GB, free: 3.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3033/0.4588, allocations: 6.821 MB / 0.5871 GB, free: 30.52 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/0.459, allocations: 217.9 kB / 0.5873 GB, free: 30.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.191/2.65, allocations: 3.219 kB / 0.5873 GB, free: 30.27 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)