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.01208/0.01208, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.002507/0.002507, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.002/1.002, allocations: 135.1 MB / 425.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 71.89 kB / 0.5851 GB, free: 3.898 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5295/0.5307, allocations: 80.91 MB / 0.6641 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003814/0.5346, allocations: 2.038 MB / 0.6661 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008258/0.5354, allocations: 0.5273 MB / 0.6666 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.416e-05/0.5355, allocations: 2.188 kB / 0.6666 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.5357, allocations: 25.38 kB / 0.6666 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.11e-05/0.5358, allocations: 45.02 kB / 0.6667 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002168/0.536, allocations: 52 kB / 0.6667 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.5362, allocations: 188.5 kB / 0.6669 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.5364, allocations: 72.72 kB / 0.667 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.5366, allocations: 68.48 kB / 0.6671 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.5367, allocations: 86.58 kB / 0.6671 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.5367, allocations: 14.38 kB / 0.6672 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.766e-05/0.5368, allocations: 14.22 kB / 0.6672 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.658e-05/0.5368, allocations: 40.59 kB / 0.6672 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.465e-05/0.5369, allocations: 83.97 kB / 0.6673 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.5371, allocations: 173.8 kB / 0.6674 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.5371, allocations: 0 / 0.6674 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.793e-06/0.5371, allocations: 0 / 0.6674 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.972e-06/0.5371, allocations: 1.25 kB / 0.6674 GB, free: 4.672 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.0007835/0.5379, allocations: 490 kB / 0.6679 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.538, allocations: 10.03 kB / 0.6679 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.611e-05/0.538, allocations: 46.7 kB / 0.668 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.169e-05/0.5381, allocations: 19.38 kB / 0.668 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.5383, allocations: 211.5 kB / 0.6682 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.001e-05/0.5384, allocations: 40.52 kB / 0.6682 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.5384, allocations: 13.38 kB / 0.6682 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004152/0.5388, allocations: 164.5 kB / 0.6684 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.5389, allocations: 0 / 0.6684 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.5389, allocations: 5.625 kB / 0.6684 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5389, allocations: 2.938 kB / 0.6684 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005237/0.5394, allocations: 150.7 kB / 0.6686 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008908/0.5403, allocations: 0.5269 MB / 0.6691 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.5409, allocations: 137.3 kB / 0.6692 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.5411, allocations: 76.2 kB / 0.6693 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.5412, allocations: 1.094 kB / 0.6693 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.5412, allocations: 36 kB / 0.6693 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.5412, allocations: 0 / 0.6693 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007963/0.542, allocations: 226.3 kB / 0.6695 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.5421, allocations: 56.72 kB / 0.6696 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.5422, allocations: 148.7 kB / 0.6697 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.5422, allocations: 30.8 kB / 0.6697 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.988e-05/0.5423, allocations: 144.2 kB / 0.6699 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.5424, allocations: 40.84 kB / 0.6699 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.259e-05/0.5424, allocations: 25.81 kB / 0.6699 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.263e-05/0.5425, allocations: 326.5 kB / 0.6703 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.5428, allocations: 60.75 kB / 0.6703 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.543, allocations: 90.36 kB / 0.6704 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.5435, allocations: 141.3 kB / 0.6705 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5435, allocations: 4 kB / 0.6705 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005252/0.544, allocations: 190.6 kB / 0.6707 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.544, allocations: 5.062 kB / 0.6707 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.544, allocations: 1.125 kB / 0.6707 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.5441, allocations: 1.312 kB / 0.6707 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.5443, allocations: 43.17 kB / 0.6708 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.168e-06/0.5443, allocations: 1.188 kB / 0.6708 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.5445, allocations: 24.86 kB / 0.6708 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.5445, allocations: 3.625 kB / 0.6708 GB, free: 1.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 0.0001071/0.5446, allocations: 136.2 kB / 0.6709 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.5446, allocations: 10.28 kB / 0.6709 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.685e-05/0.5447, allocations: 15.12 kB / 0.671 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.5447, allocations: 5.125 kB / 0.671 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.5447, allocations: 1.344 kB / 0.671 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5447, allocations: 0 / 0.671 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.545, allocations: 247.5 kB / 0.6712 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.545, allocations: 0 / 0.6712 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.5452, allocations: 33.31 kB / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.5452, allocations: 0 / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.5452, allocations: 1.438 kB / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.5452, allocations: 1.031 kB / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5452, allocations: 0 / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007018/0.5459, allocations: 356.4 kB / 0.6716 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-05/0.546, allocations: 88.33 kB / 0.6717 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.546, allocations: 5.188 kB / 0.6717 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.5462, allocations: 22.03 kB / 0.6717 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.06e-05/0.5462, allocations: 10.52 kB / 0.6717 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.5462, allocations: 5.469 kB / 0.6717 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.648e-05/0.5463, allocations: 111.2 kB / 0.6718 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.5463, allocations: 0 / 0.6718 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002591/0.5466, allocations: 37.38 kB / 0.6718 GB, free: 0.9766 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.0008444/0.5474, allocations: 0.8787 MB / 0.6727 GB, free: 208 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004896/0.5479, allocations: 141.7 kB / 0.6728 GB, free: 148 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.5479, allocations: 5.406 kB / 0.6728 GB, free: 144 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.5482, allocations: 78.53 kB / 0.6729 GB, free: 108 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.5486, allocations: 22.27 kB / 0.6729 GB, free: 96 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003099/0.5517, allocations: 1.98 MB / 0.6749 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.552, allocations: 0.7208 MB / 0.6756 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.384e-05/0.5521, allocations: 5.438 kB / 0.6756 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.244e-05/0.5522, allocations: 42.17 kB / 0.6756 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of SimCode: time 2.81e-07/0.5522, allocations: 0 / 0.6756 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02504/0.5773, allocations: 3.366 MB / 0.6789 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.366, allocations: 5 kB / 0.6789 GB, free: 11.98 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)