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.0006894/0.0006895, allocations: 88.17 kB / 15.7 MB, free: 460 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.0007227/0.0007227, allocations: 175.5 kB / 16.58 MB, free: 6.852 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.191/1.191, allocations: 223.3 MB / 240.6 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.595/0.595, allocations: 113.7 MB / 405.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 8.531 kB / 493.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1267, allocations: 77.12 MB / 0.5569 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.002773/0.1295, allocations: 2.644 MB / 0.5595 GB, free: 9.012 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.1308, allocations: 0.8964 MB / 0.5604 GB, free: 8.109 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.131, allocations: 15.94 kB / 0.5604 GB, free: 8.094 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1311, allocations: 43.52 kB / 0.5604 GB, free: 8.051 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.1313, allocations: 75.41 kB / 0.5605 GB, free: 7.977 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.1317, allocations: 163.1 kB / 0.5606 GB, free: 7.82 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003882/0.1321, allocations: 487.8 kB / 0.5611 GB, free: 7.344 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.1324, allocations: 179.7 kB / 0.5613 GB, free: 7.164 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.1325, allocations: 143.2 kB / 0.5614 GB, free: 7.023 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.1327, allocations: 143.1 kB / 0.5615 GB, free: 6.883 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.1327, allocations: 12 kB / 0.5616 GB, free: 6.871 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.511e-05/0.1328, allocations: 16 kB / 0.5616 GB, free: 6.855 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.247e-05/0.1328, allocations: 71.61 kB / 0.5616 GB, free: 6.785 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.012e-05/0.1329, allocations: 97.45 kB / 0.5617 GB, free: 6.684 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003243/0.1332, allocations: 435.1 kB / 0.5622 GB, free: 6.258 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1333, allocations: 0 / 0.5622 GB, free: 6.258 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1333, allocations: 0 / 0.5622 GB, free: 6.258 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1333, allocations: 4 kB / 0.5622 GB, free: 6.254 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.0008988/0.1342, allocations: 0.692 MB / 0.5628 GB, free: 5.512 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1342, allocations: 11.97 kB / 0.5628 GB, free: 5.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.542e-05/0.1343, allocations: 78.53 kB / 0.5629 GB, free: 5.414 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.1344, allocations: 55.34 kB / 0.563 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/0.1349, allocations: 399.5 kB / 0.5634 GB, free: 4.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.1349, allocations: 29 kB / 0.5634 GB, free: 4.898 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.825e-05/0.135, allocations: 39.98 kB / 0.5634 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.1355, allocations: 393.6 kB / 0.5638 GB, free: 4.457 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1356, allocations: 3.938 kB / 0.5638 GB, free: 4.453 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.1356, allocations: 19.98 kB / 0.5638 GB, free: 4.434 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.1356, allocations: 8 kB / 0.5638 GB, free: 4.426 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004773/0.1361, allocations: 271.8 kB / 0.5641 GB, free: 4.156 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.1375, allocations: 1.32 MB / 0.5654 GB, free: 2.762 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.1381, allocations: 319.1 kB / 0.5657 GB, free: 2.441 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.1384, allocations: 141.4 kB / 0.5658 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.1384, allocations: 8 kB / 0.5658 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/0.1387, allocations: 173.5 kB / 0.566 GB, free: 2.109 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 1.663e-06/0.1387, allocations: 0 / 0.566 GB, free: 2.109 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.0006848/0.1394, allocations: 395.4 kB / 0.5664 GB, free: 1.719 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.1395, allocations: 85.09 kB / 0.5664 GB, free: 1.617 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.1398, allocations: 345.6 kB / 0.5668 GB, free: 1.27 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.1398, allocations: 37.7 kB / 0.5668 GB, free: 1.227 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.14, allocations: 228.4 kB / 0.567 GB, free: 1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.003e-05/0.14, allocations: 114.5 kB / 0.5671 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.554e-05/0.1401, allocations: 4 kB / 0.5671 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1402, allocations: 346.8 kB / 0.5675 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.1404, allocations: 104.7 kB / 0.5676 GB, free: 440 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.1406, allocations: 168.6 kB / 0.5677 GB, free: 244 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.1408, allocations: 114.2 kB / 0.5678 GB, free: 132 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1408, allocations: 32 / 0.5678 GB, free: 132 kB / 430.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005335/0.1414, allocations: 351 kB / 0.5682 GB, free: 15.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.1414, allocations: 4 kB / 0.5682 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1414, allocations: 0 / 0.5682 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1414, allocations: 7.828 kB / 0.5682 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.1417, allocations: 76.03 kB / 0.5683 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.1417, allocations: 7.953 kB / 0.5683 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.1419, allocations: 39.73 kB / 0.5683 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1419, allocations: 12 kB / 0.5683 GB, free: 15.64 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 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.greaterEqualThreshold.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001626/0.1421, allocations: 181.7 kB / 0.5685 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.1421, allocations: 39.53 kB / 0.5685 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.223e-05/0.1422, allocations: 44.25 kB / 0.5686 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.1422, allocations: 4 kB / 0.5686 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.1422, allocations: 0 / 0.5686 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1422, allocations: 3.953 kB / 0.5686 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009346/0.1432, allocations: 0.8106 MB / 0.5694 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1432, allocations: 0 / 0.5694 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.1434, allocations: 55.91 kB / 0.5694 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1434, allocations: 0 / 0.5694 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.1434, allocations: 8 kB / 0.5694 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.1434, allocations: 3.953 kB / 0.5694 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1435, allocations: 0 / 0.5694 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007084/0.1442, allocations: 0.5106 MB / 0.5699 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.1443, allocations: 140.6 kB / 0.5701 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.151e-05/0.1443, allocations: 8 kB / 0.5701 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.1445, allocations: 19.98 kB / 0.5701 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.305e-05/0.1446, allocations: 35.97 kB / 0.5701 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.1446, allocations: 11.94 kB / 0.5701 GB, free: 13.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.1448, allocations: 239.2 kB / 0.5704 GB, free: 13.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1448, allocations: 0 / 0.5704 GB, free: 13.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.1451, allocations: 91.69 kB / 0.5705 GB, free: 13.35 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009128/0.146, allocations: 1.053 MB / 0.5715 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004632/0.1465, allocations: 276.1 kB / 0.5717 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1465, allocations: 3.938 kB / 0.5717 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.1468, allocations: 139.8 kB / 0.5719 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.1472, allocations: 77.47 kB / 0.572 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.1503, allocations: 2.296 MB / 0.5742 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.1506, allocations: 0.8074 MB / 0.575 GB, free: 8.586 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.1508, allocations: 51.25 kB / 0.575 GB, free: 8.531 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.151, allocations: 143.4 kB / 0.5752 GB, free: 8.391 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.151, allocations: 0 / 0.5752 GB, free: 8.391 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.1674, allocations: 6.953 MB / 0.582 GB, free: 1.645 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.1676, allocations: 201 kB / 0.5822 GB, free: 1.402 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/1.784, allocations: 3.938 kB / 0.5822 GB, free: 1.398 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/linux/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) Environment - environmentSimulation: