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.001166/0.001166, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001176/0.001176, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.244/1.244, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6928/0.6928, allocations: 132.2 MB / 422.3 MB, free: 2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 60.77 kB / 0.5013 GB, free: 4.168 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3726, allocations: 80.2 MB / 0.5797 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003157/0.3758, allocations: 2.099 MB / 0.5817 GB, free: 3.117 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000769/0.3766, allocations: 0.5182 MB / 0.5822 GB, free: 2.746 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.549e-05/0.3767, allocations: 2.875 kB / 0.5822 GB, free: 2.746 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.3768, allocations: 15.47 kB / 0.5822 GB, free: 2.738 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.377, allocations: 33.75 kB / 0.5823 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.3772, allocations: 50.52 kB / 0.5823 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.3774, allocations: 180.1 kB / 0.5825 GB, free: 2.598 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.3776, allocations: 70.81 kB / 0.5826 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3778, allocations: 78.59 kB / 0.5826 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.3779, allocations: 80.41 kB / 0.5827 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.3779, allocations: 14.09 kB / 0.5827 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.125e-05/0.378, allocations: 15.19 kB / 0.5827 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.169e-05/0.378, allocations: 35.36 kB / 0.5828 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.37e-05/0.3781, allocations: 79.27 kB / 0.5829 GB, free: 2.406 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.3784, allocations: 164.5 kB / 0.583 GB, free: 2.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3784, allocations: 1.875 kB / 0.583 GB, free: 2.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3784, allocations: 4 kB / 0.583 GB, free: 2.336 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.3784, allocations: 0 / 0.583 GB, free: 2.336 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.0007378/0.3792, allocations: 495.4 kB / 0.5835 GB, free: 1.906 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.3792, allocations: 9.312 kB / 0.5835 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.164e-05/0.3793, allocations: 45.73 kB / 0.5835 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.976e-05/0.3793, allocations: 27.03 kB / 0.5836 GB, free: 1.844 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.3795, allocations: 218.2 kB / 0.5838 GB, free: 1.613 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.463e-05/0.3796, allocations: 41.33 kB / 0.5838 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.3796, allocations: 13.19 kB / 0.5838 GB, free: 1.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004064/0.3801, allocations: 153.1 kB / 0.584 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.3801, allocations: 1.719 kB / 0.584 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.3801, allocations: 4.688 kB / 0.584 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3801, allocations: 7.906 kB / 0.584 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004801/0.3806, allocations: 148.5 kB / 0.5841 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008102/0.3814, allocations: 0.5309 MB / 0.5846 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004944/0.3819, allocations: 138.8 kB / 0.5848 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002498/0.3822, allocations: 79.73 kB / 0.5849 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.3822, allocations: 2.156 kB / 0.5849 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.593e-05/0.3822, allocations: 36 kB / 0.5849 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.3822, allocations: 4 kB / 0.5849 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006943/0.3829, allocations: 213.2 kB / 0.5851 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.383, allocations: 52.88 kB / 0.5851 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.3831, allocations: 160.1 kB / 0.5853 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.3831, allocations: 26.5 kB / 0.5853 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.328e-05/0.3832, allocations: 137.3 kB / 0.5855 GB, free: 488 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.3832, allocations: 41.08 kB / 0.5855 GB, free: 456 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.3833, allocations: 32.41 kB / 0.5855 GB, free: 428 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.3834, allocations: 323.7 kB / 0.5858 GB, free: 104 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.3836, allocations: 57.75 kB / 0.5859 GB, free: 92 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.3838, allocations: 91.44 kB / 0.586 GB, free: 44 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004436/0.3843, allocations: 142.4 kB / 0.5861 GB, free: 15.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3843, allocations: 3.938 kB / 0.5861 GB, free: 15.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005038/0.3848, allocations: 186.2 kB / 0.5863 GB, free: 15.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3848, allocations: 5.484 kB / 0.5863 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3849, allocations: 0.8438 kB / 0.5863 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3849, allocations: 6.562 kB / 0.5863 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.3851, allocations: 36.02 kB / 0.5863 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.3851, allocations: 1.344 kB / 0.5863 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.3853, allocations: 28.5 kB / 0.5864 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.3853, allocations: 4.609 kB / 0.5864 GB, free: 15.89 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 9.824e-05/0.3854, allocations: 128.6 kB / 0.5865 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.3854, allocations: 17.75 kB / 0.5865 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.3855, allocations: 18.73 kB / 0.5865 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3855, allocations: 1.594 kB / 0.5865 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3855, allocations: 0 / 0.5865 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3855, allocations: 0.75 kB / 0.5865 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.3858, allocations: 242.9 kB / 0.5868 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3858, allocations: 0.75 kB / 0.5868 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.386, allocations: 36.69 kB / 0.5868 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.386, allocations: 0.7188 kB / 0.5868 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.386, allocations: 5.953 kB / 0.5868 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.386, allocations: 1.484 kB / 0.5868 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.386, allocations: 0 / 0.5868 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007279/0.3868, allocations: 348.7 kB / 0.5871 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.3868, allocations: 85.83 kB / 0.5872 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.3869, allocations: 1.562 kB / 0.5872 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.387, allocations: 26.3 kB / 0.5873 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.044e-05/0.3871, allocations: 11.33 kB / 0.5873 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.3871, allocations: 6.625 kB / 0.5873 GB, free: 15.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.436e-05/0.3872, allocations: 114.5 kB / 0.5874 GB, free: 15.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3872, allocations: 4.062 kB / 0.5874 GB, free: 15.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002654/0.3875, allocations: 40.16 kB / 0.5874 GB, free: 15.09 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.0009615/0.3885, allocations: 0.8807 MB / 0.5883 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004814/0.389, allocations: 143 kB / 0.5884 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.389, allocations: 0.5 kB / 0.5884 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002234/0.3892, allocations: 81.52 kB / 0.5885 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.3896, allocations: 18.48 kB / 0.5885 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.3922, allocations: 2.013 MB / 0.5905 GB, free: 12.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.3925, allocations: 0.7183 MB / 0.5912 GB, free: 12.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.521e-05/0.3926, allocations: 8.141 kB / 0.5912 GB, free: 12.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.643e-05/0.3927, allocations: 46.67 kB / 0.5912 GB, free: 12.03 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3927, allocations: 0 / 0.5912 GB, free: 12.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.861/1.254, allocations: 3.013 MB / 0.5942 GB, free: 11.57 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/1.254, allocations: 206.2 kB / 0.5944 GB, free: 11.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.223/3.477, allocations: 0 / 0.5944 GB, free: 11.31 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)