Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_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.00622/0.00622, allocations: 101 kB / 15.73 MB, free: 6.039 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.001603/0.001603, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8091/0.8091, allocations: 135.1 MB / 425.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 66.42 kB / 0.5851 GB, free: 21.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.162, allocations: 80.92 MB / 0.6641 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003416/0.1655, allocations: 2.027 MB / 0.6661 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1666, allocations: 0.5338 MB / 0.6666 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.1667, allocations: 4 kB / 0.6666 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.1669, allocations: 23.72 kB / 0.6666 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.1671, allocations: 43.58 kB / 0.6667 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.1673, allocations: 55.91 kB / 0.6667 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.1676, allocations: 191.2 kB / 0.6669 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.1678, allocations: 62.33 kB / 0.667 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.168, allocations: 71.77 kB / 0.6671 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.1683, allocations: 79.62 kB / 0.6671 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.779e-05/0.1683, allocations: 16 kB / 0.6671 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.23e-05/0.1684, allocations: 23.94 kB / 0.6672 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.934e-05/0.1684, allocations: 35.89 kB / 0.6672 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.978e-05/0.1685, allocations: 91.47 kB / 0.6673 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.1688, allocations: 167.1 kB / 0.6674 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1688, allocations: 0 / 0.6674 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/0.1688, allocations: 0 / 0.6674 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.321e-05/0.1688, allocations: 0 / 0.6674 GB, free: 2.898 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.0008421/0.1697, allocations: 490.8 kB / 0.6679 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.1697, allocations: 9.109 kB / 0.6679 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.204e-05/0.1698, allocations: 50.73 kB / 0.668 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.876e-05/0.1699, allocations: 20.75 kB / 0.668 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/0.1702, allocations: 212 kB / 0.6682 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.1703, allocations: 46.23 kB / 0.6682 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/0.1703, allocations: 16.36 kB / 0.6683 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.1707, allocations: 154.9 kB / 0.6684 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.1707, allocations: 0 / 0.6684 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.1708, allocations: 11.98 kB / 0.6684 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1708, allocations: 3.938 kB / 0.6684 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/0.1713, allocations: 147.9 kB / 0.6686 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008929/0.1722, allocations: 0.523 MB / 0.6691 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.1726, allocations: 138.6 kB / 0.6692 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.1728, allocations: 76.81 kB / 0.6693 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.1729, allocations: 0 / 0.6693 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.417e-05/0.1729, allocations: 34.5 kB / 0.6693 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 8.62e-07/0.1729, allocations: 0 / 0.6693 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006943/0.1736, allocations: 225.3 kB / 0.6695 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.1737, allocations: 59.34 kB / 0.6696 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.1738, allocations: 150.2 kB / 0.6697 GB, free: 360 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.1738, allocations: 29.7 kB / 0.6698 GB, free: 324 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.309e-05/0.1739, allocations: 132.1 kB / 0.6699 GB, free: 184 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.013e-05/0.174, allocations: 39.45 kB / 0.6699 GB, free: 144 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.301e-05/0.174, allocations: 29.72 kB / 0.6699 GB, free: 108 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.1742, allocations: 318.8 kB / 0.6702 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.1744, allocations: 63.94 kB / 0.6703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.1746, allocations: 89.75 kB / 0.6704 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003819/0.175, allocations: 150.3 kB / 0.6705 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.175, allocations: 4 kB / 0.6705 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004669/0.1755, allocations: 185.3 kB / 0.6707 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1755, allocations: 4 kB / 0.6707 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1755, allocations: 0 / 0.6707 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.1755, allocations: 4.062 kB / 0.6707 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.1757, allocations: 39.97 kB / 0.6708 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.1757, allocations: 3.984 kB / 0.6708 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.1759, allocations: 35.81 kB / 0.6708 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.1759, allocations: 7.938 kB / 0.6708 GB, free: 15.19 MB / 0.5137 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.0001195/0.176, allocations: 133.7 kB / 0.6709 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.1761, allocations: 7.906 kB / 0.6709 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.1761, allocations: 24.72 kB / 0.671 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1761, allocations: 0 / 0.671 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1762, allocations: 0 / 0.671 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1762, allocations: 3.984 kB / 0.671 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000267/0.1764, allocations: 241.4 kB / 0.6712 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.1764, allocations: 0 / 0.6712 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.1766, allocations: 31.97 kB / 0.6712 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1766, allocations: 3.984 kB / 0.6712 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.1767, allocations: 8 kB / 0.6712 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1767, allocations: 0 / 0.6712 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1767, allocations: 7.938 kB / 0.6713 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006702/0.1774, allocations: 334.7 kB / 0.6716 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.84e-05/0.1774, allocations: 96.95 kB / 0.6717 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.1774, allocations: 3.984 kB / 0.6717 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.1776, allocations: 19.98 kB / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.1777, allocations: 15.97 kB / 0.6717 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.1777, allocations: 4 kB / 0.6717 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 8.252e-05/0.1778, allocations: 116.1 kB / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1778, allocations: 0 / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002586/0.178, allocations: 32 kB / 0.6718 GB, free: 14.04 MB / 0.5137 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.001047/0.1791, allocations: 0.8761 MB / 0.6727 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004595/0.1796, allocations: 139.8 kB / 0.6728 GB, free: 13 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1796, allocations: 0 / 0.6728 GB, free: 13 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.1798, allocations: 80.06 kB / 0.6729 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.1802, allocations: 23.97 kB / 0.6729 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.183, allocations: 1.975 MB / 0.6749 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1834, allocations: 0.7158 MB / 0.6756 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.77e-05/0.1835, allocations: 8.547 kB / 0.6756 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.287e-05/0.1836, allocations: 43.42 kB / 0.6756 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/0.1836, allocations: 0 / 0.6756 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.2047, allocations: 3.289 MB / 0.6788 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.837, allocations: 15.25 kB / 0.6788 GB, free: 6.84 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)