Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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_Cooling,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_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.007823/0.007824, allocations: 103.6 kB / 15.73 MB, free: 6.043 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.001534/0.001534, allocations: 190.1 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8155/0.8155, allocations: 135.1 MB / 425.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 62.28 kB / 0.5851 GB, free: 21.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1717, allocations: 80.92 MB / 0.6641 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003405/0.1751, allocations: 2.037 MB / 0.6661 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.1761, allocations: 0.5377 MB / 0.6666 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.1763, allocations: 7.938 kB / 0.6666 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.1764, allocations: 23.73 kB / 0.6667 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.1766, allocations: 43.58 kB / 0.6667 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002315/0.1768, allocations: 59.84 kB / 0.6668 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.1771, allocations: 179.2 kB / 0.6669 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1773, allocations: 66.33 kB / 0.667 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.1774, allocations: 79.7 kB / 0.6671 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.1776, allocations: 83.62 kB / 0.6671 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.1776, allocations: 12 kB / 0.6672 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.712e-05/0.1777, allocations: 16 kB / 0.6672 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.589e-05/0.1777, allocations: 31.91 kB / 0.6672 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.973e-05/0.1778, allocations: 87.52 kB / 0.6673 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.178, allocations: 171.1 kB / 0.6674 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.178, allocations: 0 / 0.6674 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.452e-06/0.178, allocations: 0 / 0.6674 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.178, allocations: 0 / 0.6674 GB, free: 2.918 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.0008171/0.1789, allocations: 490.8 kB / 0.6679 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1789, allocations: 13.11 kB / 0.6679 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.997e-05/0.179, allocations: 46.73 kB / 0.668 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.971e-05/0.179, allocations: 16.75 kB / 0.668 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.1792, allocations: 216 kB / 0.6682 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.09e-05/0.1793, allocations: 46.25 kB / 0.6682 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.1794, allocations: 12.38 kB / 0.6683 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.1798, allocations: 162.8 kB / 0.6684 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1798, allocations: 4 kB / 0.6684 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.1798, allocations: 4 kB / 0.6684 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1798, allocations: 4 kB / 0.6684 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005058/0.1803, allocations: 139.9 kB / 0.6686 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000787/0.1811, allocations: 0.5269 MB / 0.6691 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004173/0.1816, allocations: 138.6 kB / 0.6692 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.1818, allocations: 76.8 kB / 0.6693 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.1818, allocations: 0 / 0.6693 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.1819, allocations: 42.5 kB / 0.6693 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 9.82e-07/0.1819, allocations: 0 / 0.6693 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007175/0.1826, allocations: 221.3 kB / 0.6695 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.1827, allocations: 55.41 kB / 0.6696 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.1828, allocations: 150.2 kB / 0.6697 GB, free: 384 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1828, allocations: 29.7 kB / 0.6697 GB, free: 348 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1829, allocations: 132.1 kB / 0.6699 GB, free: 208 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.183, allocations: 39.45 kB / 0.6699 GB, free: 168 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.52e-05/0.183, allocations: 29.7 kB / 0.6699 GB, free: 132 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1832, allocations: 326.8 kB / 0.6703 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.1834, allocations: 63.89 kB / 0.6703 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.1836, allocations: 82.52 kB / 0.6704 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.184, allocations: 157 kB / 0.6705 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.184, allocations: 4 kB / 0.6705 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000495/0.1845, allocations: 185.3 kB / 0.6707 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1846, allocations: 9.625 kB / 0.6707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.1846, allocations: 4 kB / 0.6707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1846, allocations: 0 / 0.6707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.1848, allocations: 35.97 kB / 0.6708 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.1848, allocations: 0 / 0.6708 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.185, allocations: 35.75 kB / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.185, allocations: 4 kB / 0.6708 GB, free: 15.21 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.0001033/0.1851, allocations: 133.8 kB / 0.6709 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.1851, allocations: 7.906 kB / 0.6709 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.523e-05/0.1852, allocations: 16.72 kB / 0.671 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.1852, allocations: 3.984 kB / 0.671 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1852, allocations: 4 kB / 0.671 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1852, allocations: 0 / 0.671 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.1855, allocations: 245.4 kB / 0.6712 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1855, allocations: 0 / 0.6712 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.1857, allocations: 35.91 kB / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1857, allocations: 8 kB / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.1857, allocations: 0 / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1857, allocations: 0 / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1857, allocations: 0 / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007266/0.1864, allocations: 339.2 kB / 0.6716 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.77e-05/0.1865, allocations: 96.88 kB / 0.6717 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.1865, allocations: 4 kB / 0.6717 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.1867, allocations: 15.98 kB / 0.6717 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.1868, allocations: 15.97 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.1868, allocations: 4 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.609e-05/0.1869, allocations: 116.1 kB / 0.6718 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.3e-07/0.1869, allocations: 4.062 kB / 0.6718 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002523/0.1871, allocations: 32 kB / 0.6718 GB, free: 14.06 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.001132/0.1883, allocations: 0.8761 MB / 0.6727 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004829/0.1888, allocations: 143.8 kB / 0.6728 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1888, allocations: 192 / 0.6728 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.189, allocations: 75.89 kB / 0.6729 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.1894, allocations: 24.8 kB / 0.6729 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.1922, allocations: 1.981 MB / 0.6749 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.1926, allocations: 0.7235 MB / 0.6756 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.589e-05/0.1926, allocations: 8.547 kB / 0.6756 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.869e-05/0.1927, allocations: 47.42 kB / 0.6756 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of SimCode: time 5.81e-07/0.1927, allocations: 0 / 0.6756 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02436/0.2171, allocations: 3.347 MB / 0.6789 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.192, allocations: 9.969 kB / 0.6789 GB, free: 6.797 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)