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.007759/0.007759, allocations: 95.69 kB / 15.73 MB, free: 6.059 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.001901/0.001901, allocations: 198.1 kB / 16.68 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.49/1.49, 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 0.9754/0.9754, allocations: 135.5 MB / 426.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 67.88 kB / 0.5857 GB, free: 3.277 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4161, allocations: 81.02 MB / 0.6648 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003141/0.4193, allocations: 2.027 MB / 0.6668 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007917/0.4201, allocations: 0.5238 MB / 0.6673 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.373e-05/0.4202, allocations: 6.594 kB / 0.6673 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.4204, allocations: 16.95 kB / 0.6673 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.983e-05/0.4205, allocations: 52.44 kB / 0.6674 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.4207, allocations: 55.95 kB / 0.6675 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000279/0.421, allocations: 185.5 kB / 0.6676 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.4212, allocations: 71.88 kB / 0.6677 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.4214, allocations: 67.88 kB / 0.6678 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.4216, allocations: 83.92 kB / 0.6678 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.806e-05/0.4216, allocations: 13.59 kB / 0.6679 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.346e-05/0.4217, allocations: 15.16 kB / 0.6679 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.749e-05/0.4217, allocations: 44.92 kB / 0.6679 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.789e-05/0.4218, allocations: 75.23 kB / 0.668 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.422, allocations: 179.3 kB / 0.6682 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.422, allocations: 1.125 kB / 0.6682 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.472e-06/0.422, allocations: 0 / 0.6682 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.422, allocations: 0 / 0.6682 GB, free: 4.266 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.0007032/0.4227, allocations: 494.7 kB / 0.6686 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4228, allocations: 13.03 kB / 0.6686 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.87e-05/0.4228, allocations: 47.77 kB / 0.6687 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.328e-05/0.4228, allocations: 21.77 kB / 0.6687 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.423, allocations: 217.5 kB / 0.6689 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.617e-05/0.4231, allocations: 37.05 kB / 0.6689 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/0.4232, allocations: 17.3 kB / 0.669 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004375/0.4236, allocations: 159.8 kB / 0.6691 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.4236, allocations: 4 kB / 0.6691 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.4237, allocations: 5.094 kB / 0.6691 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.4237, allocations: 3.344 kB / 0.6691 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005413/0.4242, allocations: 138.5 kB / 0.6693 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009144/0.4252, allocations: 0.5431 MB / 0.6698 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005073/0.4257, allocations: 128.8 kB / 0.6699 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.4259, allocations: 89.05 kB / 0.67 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.426, allocations: 5 kB / 0.67 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.426, allocations: 32.09 kB / 0.67 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.615e-06/0.426, allocations: 0 / 0.67 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0008172/0.4268, allocations: 217.8 kB / 0.6702 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.4269, allocations: 52.66 kB / 0.6703 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.427, allocations: 155.2 kB / 0.6704 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.427, allocations: 29.7 kB / 0.6705 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/0.4271, allocations: 124.8 kB / 0.6706 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.4271, allocations: 48.84 kB / 0.6706 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.393e-05/0.4272, allocations: 34.7 kB / 0.6707 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.441e-05/0.4273, allocations: 321.6 kB / 0.671 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.4275, allocations: 60.48 kB / 0.671 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.4277, allocations: 88.55 kB / 0.6711 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003885/0.4281, allocations: 139.6 kB / 0.6713 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4281, allocations: 1.5 kB / 0.6713 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000471/0.4286, allocations: 185.7 kB / 0.6714 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.4286, allocations: 5.219 kB / 0.6714 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4286, allocations: 1.312 kB / 0.6714 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.4286, allocations: 1.406 kB / 0.6714 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.4288, allocations: 44.28 kB / 0.6715 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.4289, allocations: 5.469 kB / 0.6715 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.429, allocations: 23.36 kB / 0.6715 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.429, allocations: 12.36 kB / 0.6715 GB, free: 1.449 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 9.538e-05/0.4291, allocations: 131.8 kB / 0.6716 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.321e-05/0.4292, allocations: 13.69 kB / 0.6717 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.707e-05/0.4293, allocations: 19.7 kB / 0.6717 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4293, allocations: 1.062 kB / 0.6717 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4293, allocations: 1.312 kB / 0.6717 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.4293, allocations: 4 kB / 0.6717 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002634/0.4296, allocations: 243.8 kB / 0.6719 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.4296, allocations: 0 / 0.6719 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002927/0.4299, allocations: 36.5 kB / 0.6719 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4299, allocations: 1 kB / 0.672 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.4299, allocations: 1.031 kB / 0.672 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.4299, allocations: 0.9375 kB / 0.672 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4299, allocations: 0 / 0.672 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.431, allocations: 354.9 kB / 0.6723 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.794e-05/0.431, allocations: 88.67 kB / 0.6724 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.4311, allocations: 5.438 kB / 0.6724 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.4313, allocations: 26.62 kB / 0.6724 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.301e-05/0.4314, allocations: 12.8 kB / 0.6724 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.4314, allocations: 3.219 kB / 0.6724 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.956e-05/0.4315, allocations: 115.3 kB / 0.6725 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.4315, allocations: 0 / 0.6725 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004452/0.432, allocations: 35.69 kB / 0.6726 GB, free: 0.5469 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.001298/0.4333, allocations: 0.8757 MB / 0.6734 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007571/0.434, allocations: 147 kB / 0.6736 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4341, allocations: 0 / 0.6736 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003342/0.4344, allocations: 71.36 kB / 0.6736 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005715/0.435, allocations: 27.09 kB / 0.6737 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004304/0.4393, allocations: 1.983 MB / 0.6756 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.4398, allocations: 0.7135 MB / 0.6763 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000121/0.44, allocations: 13.55 kB / 0.6763 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.4401, allocations: 46.27 kB / 0.6763 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/0.4401, allocations: 0 / 0.6763 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.4733, allocations: 3.292 MB / 0.6796 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.443, allocations: 7.188 kB / 0.6796 GB, free: 11.59 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)