Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",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.006263/0.006263, allocations: 99.11 kB / 15.73 MB, free: 6.035 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.001413/0.001413, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7222/0.7222, allocations: 132.2 MB / 422.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 62.33 kB / 0.5808 GB, free: 1.141 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1437, allocations: 80.21 MB / 0.6592 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003091/0.1468, allocations: 2.024 MB / 0.6611 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009306/0.1478, allocations: 0.5415 MB / 0.6617 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.148, allocations: 4 kB / 0.6617 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.1481, allocations: 23.73 kB / 0.6617 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.1482, allocations: 47.56 kB / 0.6617 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.1485, allocations: 55.88 kB / 0.6618 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.1487, allocations: 183.2 kB / 0.662 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.1489, allocations: 75.61 kB / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.1491, allocations: 71.72 kB / 0.6621 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.1492, allocations: 87.59 kB / 0.6622 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.1492, allocations: 16 kB / 0.6622 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.592e-05/0.1493, allocations: 20 kB / 0.6622 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.1493, allocations: 31.91 kB / 0.6622 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.1494, allocations: 79.55 kB / 0.6623 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002487/0.1497, allocations: 179.5 kB / 0.6625 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1497, allocations: 0 / 0.6625 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.864e-06/0.1497, allocations: 0 / 0.6625 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.1497, allocations: 0 / 0.6625 GB, free: 10.57 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007743/0.1505, allocations: 498.6 kB / 0.663 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1505, allocations: 8.031 kB / 0.663 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.795e-05/0.1506, allocations: 50.73 kB / 0.663 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.95e-05/0.1506, allocations: 16.84 kB / 0.663 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.1508, allocations: 211.3 kB / 0.6632 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/0.1509, allocations: 38.27 kB / 0.6633 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.151, allocations: 12.38 kB / 0.6633 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003939/0.1514, allocations: 165.5 kB / 0.6635 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1514, allocations: 0 / 0.6635 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1514, allocations: 8 kB / 0.6635 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.1514, allocations: 4 kB / 0.6635 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.1519, allocations: 141.2 kB / 0.6636 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000756/0.1527, allocations: 0.5308 MB / 0.6641 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.1531, allocations: 138.6 kB / 0.6642 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.1533, allocations: 80.8 kB / 0.6643 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.1533, allocations: 0 / 0.6643 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.1534, allocations: 34.56 kB / 0.6644 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.214e-06/0.1534, allocations: 0 / 0.6644 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006908/0.1541, allocations: 232.2 kB / 0.6646 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.1541, allocations: 51.41 kB / 0.6646 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.1542, allocations: 154.4 kB / 0.6648 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.1543, allocations: 29.7 kB / 0.6648 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.504e-05/0.1543, allocations: 132.2 kB / 0.6649 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.719e-05/0.1544, allocations: 43.61 kB / 0.665 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.414e-05/0.1545, allocations: 37.66 kB / 0.665 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1546, allocations: 322.8 kB / 0.6653 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.1548, allocations: 59.95 kB / 0.6654 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.155, allocations: 82.52 kB / 0.6655 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.1554, allocations: 155.9 kB / 0.6656 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1554, allocations: 0 / 0.6656 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004655/0.1559, allocations: 181.5 kB / 0.6658 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1559, allocations: 4 kB / 0.6658 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1559, allocations: 0 / 0.6658 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1559, allocations: 4 kB / 0.6658 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.1561, allocations: 44.03 kB / 0.6658 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.1561, allocations: 3.938 kB / 0.6658 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/0.1563, allocations: 27.86 kB / 0.6659 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.1563, allocations: 8 kB / 0.6659 GB, free: 6.859 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (con.y_boolean,$PRE.con.y_boolean) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001041/0.1564, allocations: 125.8 kB / 0.666 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.654e-05/0.1564, allocations: 11.91 kB / 0.666 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.425e-05/0.1565, allocations: 20.7 kB / 0.666 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.1565, allocations: 4 kB / 0.666 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1565, allocations: 0 / 0.666 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1565, allocations: 4 kB / 0.666 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.1568, allocations: 237.5 kB / 0.6662 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1568, allocations: 0 / 0.6662 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.157, allocations: 43.84 kB / 0.6663 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.157, allocations: 4 kB / 0.6663 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.157, allocations: 0 / 0.6663 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.157, allocations: 0 / 0.6663 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.157, allocations: 0 / 0.6663 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006975/0.1577, allocations: 345.3 kB / 0.6666 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.574e-05/0.1578, allocations: 92.98 kB / 0.6667 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.1578, allocations: 8.062 kB / 0.6667 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.158, allocations: 19.97 kB / 0.6667 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.533e-05/0.158, allocations: 11.98 kB / 0.6667 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.1581, allocations: 4 kB / 0.6668 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.385e-05/0.1581, allocations: 115.2 kB / 0.6669 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1581, allocations: 0 / 0.6669 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002595/0.1584, allocations: 32 kB / 0.6669 GB, free: 5.703 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.0009461/0.1594, allocations: 0.8802 MB / 0.6678 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004563/0.1598, allocations: 135.8 kB / 0.6679 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1598, allocations: 0 / 0.6679 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.16, allocations: 75.89 kB / 0.668 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.1604, allocations: 23.17 kB / 0.668 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.1631, allocations: 1.989 MB / 0.6699 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.1634, allocations: 0.7158 MB / 0.6706 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.59e-05/0.1634, allocations: 8.547 kB / 0.6706 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.314e-05/0.1635, allocations: 47.42 kB / 0.6707 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of SimCode: time 4.2e-07/0.1635, allocations: 0 / 0.6707 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.1851, allocations: 3.297 MB / 0.6739 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.269/7.455, allocations: 7.359 kB / 0.6739 GB, free: 14.54 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)