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.005727/0.005727, allocations: 108.3 kB / 15.74 MB, free: 6.441 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.001404/0.001404, allocations: 194.2 kB / 16.67 MB, free: 6.355 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7013/0.7013, allocations: 132.2 MB / 422.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.001211, allocations: 66.16 kB / 0.5808 GB, free: 1.156 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1499, allocations: 80.21 MB / 0.6592 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003209/0.1532, allocations: 2.027 MB / 0.6611 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009974/0.1542, allocations: 0.5415 MB / 0.6617 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.1544, allocations: 0 / 0.6617 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.1546, allocations: 23.73 kB / 0.6617 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001658/0.1548, allocations: 43.56 kB / 0.6617 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.1551, allocations: 47.94 kB / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002578/0.1553, allocations: 199.2 kB / 0.662 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.1555, allocations: 70.3 kB / 0.662 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.1557, allocations: 75.75 kB / 0.6621 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.1559, allocations: 79.62 kB / 0.6622 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.1559, allocations: 16 kB / 0.6622 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.115e-05/0.156, allocations: 15.94 kB / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.99e-05/0.156, allocations: 35.91 kB / 0.6622 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.668e-05/0.1561, allocations: 79.55 kB / 0.6623 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.1563, allocations: 179 kB / 0.6625 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1563, allocations: 0 / 0.6625 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.894e-06/0.1564, allocations: 4 kB / 0.6625 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.354e-05/0.1564, allocations: 0 / 0.6625 GB, free: 10.62 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.0007895/0.1572, allocations: 486.8 kB / 0.663 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1572, allocations: 8.031 kB / 0.663 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.338e-05/0.1573, allocations: 46.73 kB / 0.663 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.272e-05/0.1573, allocations: 24.75 kB / 0.663 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.1576, allocations: 212 kB / 0.6632 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.318e-05/0.1576, allocations: 38.27 kB / 0.6633 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.1577, allocations: 12.38 kB / 0.6633 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003732/0.1581, allocations: 153.5 kB / 0.6634 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.1581, allocations: 0 / 0.6634 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.1581, allocations: 8 kB / 0.6634 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1581, allocations: 7.938 kB / 0.6635 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004501/0.1586, allocations: 149.2 kB / 0.6636 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008356/0.1594, allocations: 0.5269 MB / 0.6641 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004238/0.1599, allocations: 134.6 kB / 0.6642 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.1601, allocations: 80.8 kB / 0.6643 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.1601, allocations: 0 / 0.6643 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.1602, allocations: 34.56 kB / 0.6643 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.715e-06/0.1602, allocations: 0 / 0.6643 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006713/0.1608, allocations: 225.3 kB / 0.6646 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.1609, allocations: 59.34 kB / 0.6646 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.161, allocations: 154.4 kB / 0.6648 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.161, allocations: 25.7 kB / 0.6648 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.782e-05/0.1611, allocations: 132.1 kB / 0.6649 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.1612, allocations: 31.47 kB / 0.6649 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.158e-05/0.1612, allocations: 33.7 kB / 0.665 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.304e-05/0.1613, allocations: 330.8 kB / 0.6653 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.1615, allocations: 59.94 kB / 0.6654 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.1617, allocations: 85.34 kB / 0.6654 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.1621, allocations: 153.3 kB / 0.6656 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1621, allocations: 0 / 0.6656 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004431/0.1626, allocations: 197.3 kB / 0.6658 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1626, allocations: 4 kB / 0.6658 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1626, allocations: 0 / 0.6658 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.1626, allocations: 4 kB / 0.6658 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.1628, allocations: 35.97 kB / 0.6658 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1629, allocations: 7.969 kB / 0.6658 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.163, allocations: 27.89 kB / 0.6658 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.163, allocations: 11.98 kB / 0.6659 GB, free: 6.926 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.0001053/0.1631, allocations: 125.7 kB / 0.666 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.856e-05/0.1632, allocations: 15.89 kB / 0.666 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.1632, allocations: 16.72 kB / 0.666 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1632, allocations: 0 / 0.666 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1632, allocations: 0 / 0.666 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.1633, allocations: 0 / 0.666 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002519/0.1635, allocations: 249.4 kB / 0.6662 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1635, allocations: 0 / 0.6662 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.1637, allocations: 35.97 kB / 0.6663 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1637, allocations: 0 / 0.6663 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.1637, allocations: 4 kB / 0.6663 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.1637, allocations: 0 / 0.6663 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1638, allocations: 3.938 kB / 0.6663 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000653/0.1644, allocations: 343.2 kB / 0.6666 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.1645, allocations: 92.89 kB / 0.6667 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.1645, allocations: 0 / 0.6667 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.1647, allocations: 23.97 kB / 0.6667 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.078e-05/0.1647, allocations: 7.984 kB / 0.6667 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.1647, allocations: 12.06 kB / 0.6667 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.726e-05/0.1648, allocations: 111.2 kB / 0.6668 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1648, allocations: 0 / 0.6668 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002628/0.1651, allocations: 35.91 kB / 0.6669 GB, free: 5.77 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.0008767/0.166, allocations: 0.8684 MB / 0.6677 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004342/0.1664, allocations: 151.1 kB / 0.6679 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1664, allocations: 0 / 0.6679 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.1666, allocations: 75.88 kB / 0.6679 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.167, allocations: 22.28 kB / 0.668 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.1696, allocations: 1.982 MB / 0.6699 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.1698, allocations: 0.7158 MB / 0.6706 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.682e-05/0.1699, allocations: 8.562 kB / 0.6706 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.631e-05/0.17, allocations: 43.42 kB / 0.6707 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.17, allocations: 0 / 0.6707 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.1932, allocations: 3.293 MB / 0.6739 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.24/7.433, allocations: 0.7031 kB / 0.6739 GB, free: 14.62 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)