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.0009784/0.0009786, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005145/0.005146, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7541/0.7541, allocations: 132.3 MB / 423.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003098, allocations: 8 kB / 0.5041 GB, free: 3.824 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3616, allocations: 81.57 MB / 0.5837 GB, free: 4.059 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.001723/0.3633, allocations: 1.74 MB / 0.5854 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006226/0.364, allocations: 0.5271 MB / 0.5859 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.3641, allocations: 2.406 kB / 0.5859 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.932e-05/0.3642, allocations: 15.28 kB / 0.586 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.862e-05/0.3643, allocations: 38.39 kB / 0.586 GB, free: 2.383 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.3644, allocations: 47.67 kB / 0.586 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.3646, allocations: 174.9 kB / 0.5862 GB, free: 2.273 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.3648, allocations: 61.06 kB / 0.5863 GB, free: 2.238 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.3649, allocations: 58.92 kB / 0.5863 GB, free: 2.215 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.365, allocations: 69.89 kB / 0.5864 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.365, allocations: 6.469 kB / 0.5864 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.386e-05/0.3651, allocations: 6.281 kB / 0.5864 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.022e-05/0.3651, allocations: 34.88 kB / 0.5864 GB, free: 2.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.749e-05/0.3652, allocations: 94.55 kB / 0.5865 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.3653, allocations: 156.7 kB / 0.5867 GB, free: 2.039 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3653, allocations: 0.75 kB / 0.5867 GB, free: 2.039 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3653, allocations: 0 / 0.5867 GB, free: 2.039 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.3654, allocations: 0.8438 kB / 0.5867 GB, free: 2.039 MB / 430.1 MB 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.0005966/0.366, allocations: 484.1 kB / 0.5871 GB, free: 1.621 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.366, allocations: 9.062 kB / 0.5872 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.103e-05/0.366, allocations: 47.28 kB / 0.5872 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.3661, allocations: 22.06 kB / 0.5872 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.3662, allocations: 209.6 kB / 0.5874 GB, free: 1.34 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.658e-05/0.3663, allocations: 46.25 kB / 0.5875 GB, free: 1.297 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.3664, allocations: 13.92 kB / 0.5875 GB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.3668, allocations: 169.1 kB / 0.5876 GB, free: 1.223 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3668, allocations: 0 / 0.5876 GB, free: 1.223 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.3668, allocations: 10 kB / 0.5876 GB, free: 1.215 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3668, allocations: 3.469 kB / 0.5876 GB, free: 1.215 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005215/0.3673, allocations: 169.8 kB / 0.5878 GB, free: 1.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000675/0.368, allocations: 0.5357 MB / 0.5883 GB, free: 0.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.3685, allocations: 148.3 kB / 0.5885 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.3687, allocations: 97.52 kB / 0.5886 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.3687, allocations: 1.641 kB / 0.5886 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/0.3688, allocations: 33.2 kB / 0.5886 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.3688, allocations: 0 / 0.5886 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007483/0.3695, allocations: 263.2 kB / 0.5889 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.3695, allocations: 52.97 kB / 0.5889 GB, free: 484 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.3697, allocations: 155.6 kB / 0.5891 GB, free: 360 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.3697, allocations: 34.55 kB / 0.5891 GB, free: 320 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.3697, allocations: 126.8 kB / 0.5892 GB, free: 200 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.3698, allocations: 39.75 kB / 0.5892 GB, free: 168 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.3698, allocations: 26.98 kB / 0.5893 GB, free: 140 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.957e-05/0.3699, allocations: 330.5 kB / 0.5896 GB, free: 15.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.3701, allocations: 74.55 kB / 0.5897 GB, free: 15.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.3704, allocations: 102.2 kB / 0.5898 GB, free: 15.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004615/0.3709, allocations: 162 kB / 0.5899 GB, free: 15.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3709, allocations: 1.125 kB / 0.5899 GB, free: 15.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005273/0.3714, allocations: 212.2 kB / 0.5901 GB, free: 15.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.3714, allocations: 13.06 kB / 0.5901 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.3714, allocations: 0.625 kB / 0.5901 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.3715, allocations: 2.078 kB / 0.5901 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.3717, allocations: 46.77 kB / 0.5902 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.3717, allocations: 5.375 kB / 0.5902 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.3718, allocations: 40.02 kB / 0.5902 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.3719, allocations: 2.844 kB / 0.5902 GB, free: 15.59 MB / 446.1 MB 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.0001038/0.372, allocations: 133.6 kB / 0.5903 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.638e-05/0.372, allocations: 14.62 kB / 0.5904 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.3721, allocations: 16.78 kB / 0.5904 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.3721, allocations: 2.031 kB / 0.5904 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3721, allocations: 0 / 0.5904 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3721, allocations: 5.984 kB / 0.5904 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002586/0.3723, allocations: 242.3 kB / 0.5906 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3724, allocations: 0.7031 kB / 0.5906 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.3726, allocations: 38.16 kB / 0.5906 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3726, allocations: 1.375 kB / 0.5906 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.3726, allocations: 6.125 kB / 0.5907 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3726, allocations: 0 / 0.5907 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3726, allocations: 5.938 kB / 0.5907 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007874/0.3734, allocations: 383.8 kB / 0.591 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.3734, allocations: 84.97 kB / 0.5911 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.3735, allocations: 5.312 kB / 0.5911 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3736, allocations: 25.47 kB / 0.5911 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.3737, allocations: 15.98 kB / 0.5912 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.3737, allocations: 3.312 kB / 0.5912 GB, free: 14.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.112e-05/0.3738, allocations: 117.3 kB / 0.5913 GB, free: 14.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3738, allocations: 0 / 0.5913 GB, free: 14.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.3741, allocations: 40.72 kB / 0.5913 GB, free: 14.79 MB / 446.1 MB 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.00102/0.3751, allocations: 0.9152 MB / 0.5922 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005037/0.3756, allocations: 169 kB / 0.5924 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3756, allocations: 0.7812 kB / 0.5924 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002456/0.3759, allocations: 86.2 kB / 0.5924 GB, free: 14.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.3762, allocations: 20.94 kB / 0.5925 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.3789, allocations: 2.133 MB / 0.5945 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.3792, allocations: 0.7173 MB / 0.5952 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.917e-05/0.3793, allocations: 13.19 kB / 0.5953 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.777e-05/0.3794, allocations: 41.34 kB / 0.5953 GB, free: 11.7 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3794, allocations: 0 / 0.5953 GB, free: 11.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5307/0.9101, allocations: 2.826 MB / 0.5981 GB, free: 11.19 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.9103, allocations: 195 kB / 0.5982 GB, free: 10.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/2.57, allocations: 3.938 kB / 0.5982 GB, free: 10.93 MB / 446.1 MB (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)