Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",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.006324/0.006324, allocations: 104.6 kB / 15.74 MB, free: 6.496 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.001421/0.001421, allocations: 191.6 kB / 16.67 MB, free: 6.379 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7279/0.7279, allocations: 132.2 MB / 422.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 66.25 kB / 0.5808 GB, free: 1.145 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1448, allocations: 80.21 MB / 0.6592 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003099/0.148, allocations: 2.023 MB / 0.6611 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009278/0.1489, allocations: 0.5376 MB / 0.6617 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.1491, allocations: 4 kB / 0.6617 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.1492, allocations: 23.72 kB / 0.6617 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.1494, allocations: 47.58 kB / 0.6617 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.1497, allocations: 47.94 kB / 0.6618 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.1499, allocations: 191.2 kB / 0.662 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.1501, allocations: 67.62 kB / 0.662 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001595/0.1503, allocations: 79.75 kB / 0.6621 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.1504, allocations: 79.62 kB / 0.6622 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/0.1504, allocations: 12 kB / 0.6622 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.916e-05/0.1505, allocations: 16 kB / 0.6622 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.741e-05/0.1505, allocations: 31.91 kB / 0.6622 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.331e-05/0.1506, allocations: 83.53 kB / 0.6623 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.1508, allocations: 183 kB / 0.6625 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1508, allocations: 0 / 0.6625 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.864e-06/0.1508, allocations: 0 / 0.6625 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.1509, 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.0007923/0.1517, allocations: 486.8 kB / 0.663 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1517, allocations: 16.03 kB / 0.663 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.698e-05/0.1518, allocations: 46.73 kB / 0.663 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.971e-05/0.1518, allocations: 16.75 kB / 0.663 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.152, allocations: 212 kB / 0.6632 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.545e-05/0.1521, allocations: 38.27 kB / 0.6633 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.4e-05/0.1521, allocations: 12.38 kB / 0.6633 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.1525, allocations: 153.5 kB / 0.6634 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1526, allocations: 8 kB / 0.6634 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1526, allocations: 4 kB / 0.6634 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.1526, allocations: 4 kB / 0.6634 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004509/0.153, allocations: 153.1 kB / 0.6636 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007541/0.1538, allocations: 0.523 MB / 0.6641 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.1542, allocations: 134.6 kB / 0.6642 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.1544, allocations: 88.78 kB / 0.6643 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.1545, allocations: 0 / 0.6643 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.1545, allocations: 42.5 kB / 0.6644 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.072e-06/0.1545, allocations: 3.938 kB / 0.6644 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006685/0.1552, allocations: 221.4 kB / 0.6646 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.1552, allocations: 51.41 kB / 0.6646 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.1553, allocations: 158.3 kB / 0.6648 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1554, allocations: 25.7 kB / 0.6648 GB, free: 7.992 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.911e-05/0.1554, allocations: 132.1 kB / 0.6649 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.306e-05/0.1555, allocations: 43.45 kB / 0.665 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-05/0.1555, allocations: 29.72 kB / 0.665 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.727e-05/0.1556, allocations: 322.8 kB / 0.6653 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.1558, allocations: 59.94 kB / 0.6654 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.156, allocations: 82.53 kB / 0.6654 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.1564, allocations: 153.5 kB / 0.6656 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1564, allocations: 0 / 0.6656 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004374/0.1568, allocations: 189.3 kB / 0.6658 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1569, allocations: 4 kB / 0.6658 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1569, allocations: 7.984 kB / 0.6658 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1569, allocations: 0 / 0.6658 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.1571, allocations: 39.95 kB / 0.6658 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1571, allocations: 4.062 kB / 0.6658 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.1572, allocations: 27.83 kB / 0.6658 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.1572, allocations: 4 kB / 0.6658 GB, free: 6.871 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 9.75e-05/0.1573, allocations: 133.7 kB / 0.666 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.1574, allocations: 7.906 kB / 0.666 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.1574, allocations: 20.72 kB / 0.666 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1574, allocations: 0 / 0.666 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1575, allocations: 4 kB / 0.666 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-06/0.1575, allocations: 4 kB / 0.666 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.1577, allocations: 241.4 kB / 0.6662 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1577, allocations: 0 / 0.6662 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.1579, allocations: 31.97 kB / 0.6663 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1579, allocations: 4 kB / 0.6663 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.1579, allocations: 4 kB / 0.6663 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1579, allocations: 0 / 0.6663 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1579, allocations: 3.984 kB / 0.6663 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006337/0.1586, allocations: 342.2 kB / 0.6666 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.734e-05/0.1586, allocations: 92.89 kB / 0.6667 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.1587, allocations: 8 kB / 0.6667 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.1588, allocations: 20.03 kB / 0.6667 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.492e-05/0.1589, allocations: 15.98 kB / 0.6667 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.1589, allocations: 4 kB / 0.6667 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.999e-05/0.159, allocations: 111.2 kB / 0.6668 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.159, allocations: 3.938 kB / 0.6669 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002512/0.1592, allocations: 35.91 kB / 0.6669 GB, free: 5.707 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.0008704/0.1601, allocations: 0.8723 MB / 0.6677 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004394/0.1606, allocations: 143.9 kB / 0.6679 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1606, allocations: 4 kB / 0.6679 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.1608, allocations: 75.88 kB / 0.6679 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.0003577/0.1612, allocations: 18 kB / 0.668 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002461/0.1636, allocations: 1.985 MB / 0.6699 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.1639, allocations: 0.7197 MB / 0.6706 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.137e-05/0.1639, allocations: 8.562 kB / 0.6706 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.755e-05/0.164, allocations: 39.42 kB / 0.6707 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of SimCode: time 5.72e-07/0.164, allocations: 4 kB / 0.6707 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02151/0.1855, allocations: 3.36 MB / 0.6739 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.257/7.443, allocations: 0.7031 kB / 0.6739 GB, free: 14.49 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)