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.005697/0.005697, allocations: 97.61 kB / 15.73 MB, free: 6.047 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.001236/0.001236, allocations: 194 kB / 16.67 MB, free: 5.969 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9467/0.9467, allocations: 135.1 MB / 425.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 59.91 kB / 0.5851 GB, free: 3.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4211, allocations: 80.92 MB / 0.6641 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003277/0.4245, allocations: 2.034 MB / 0.6661 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009347/0.4254, allocations: 0.5339 MB / 0.6666 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.4256, allocations: 2.875 kB / 0.6666 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.4257, allocations: 20.95 kB / 0.6666 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001358/0.4259, allocations: 45.84 kB / 0.6667 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.4261, allocations: 58.88 kB / 0.6667 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.4264, allocations: 185.9 kB / 0.6669 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.4266, allocations: 71.91 kB / 0.667 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.4267, allocations: 68.81 kB / 0.6671 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.4269, allocations: 90.03 kB / 0.6671 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.233e-05/0.4269, allocations: 15.34 kB / 0.6672 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.492e-05/0.427, allocations: 14.22 kB / 0.6672 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.539e-05/0.427, allocations: 37.03 kB / 0.6672 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.234e-05/0.4271, allocations: 79.39 kB / 0.6673 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.4273, allocations: 176 kB / 0.6675 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4273, allocations: 4 kB / 0.6675 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4273, allocations: 0 / 0.6675 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.4273, allocations: 1.062 kB / 0.6675 GB, free: 4.723 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.000776/0.4281, allocations: 490.6 kB / 0.6679 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4282, allocations: 9.625 kB / 0.6679 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.372e-05/0.4282, allocations: 50.73 kB / 0.668 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.537e-05/0.4283, allocations: 22.11 kB / 0.668 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.4285, allocations: 209.8 kB / 0.6682 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.589e-05/0.4285, allocations: 38.3 kB / 0.6682 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.4286, allocations: 12.56 kB / 0.6683 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003854/0.429, allocations: 167.6 kB / 0.6684 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.429, allocations: 0 / 0.6684 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.429, allocations: 9.5 kB / 0.6684 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.429, allocations: 3.875 kB / 0.6684 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004762/0.4295, allocations: 137.8 kB / 0.6686 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006782/0.4302, allocations: 0.5322 MB / 0.6691 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/0.4306, allocations: 148.3 kB / 0.6692 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.4309, allocations: 84.45 kB / 0.6693 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.4309, allocations: 1.156 kB / 0.6693 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.333e-05/0.4309, allocations: 31.97 kB / 0.6693 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.4309, allocations: 0 / 0.6693 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007168/0.4316, allocations: 222 kB / 0.6695 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.4317, allocations: 52.84 kB / 0.6696 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.129e-05/0.4318, allocations: 154.4 kB / 0.6697 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.4318, allocations: 26.77 kB / 0.6698 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.134e-05/0.4319, allocations: 132 kB / 0.6699 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.939e-05/0.4319, allocations: 49.14 kB / 0.6699 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.327e-05/0.4319, allocations: 39 kB / 0.67 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.432, allocations: 321.7 kB / 0.6703 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.4322, allocations: 61.02 kB / 0.6703 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.4324, allocations: 80.14 kB / 0.6704 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003848/0.4328, allocations: 148.1 kB / 0.6706 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4328, allocations: 1.25 kB / 0.6706 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004599/0.4333, allocations: 186.4 kB / 0.6707 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4333, allocations: 5.219 kB / 0.6707 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4333, allocations: 0 / 0.6707 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.4333, allocations: 2.438 kB / 0.6707 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.4336, allocations: 38.91 kB / 0.6708 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.4336, allocations: 2.469 kB / 0.6708 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.4337, allocations: 27.55 kB / 0.6708 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.4337, allocations: 8.25 kB / 0.6708 GB, free: 1.91 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 7.669e-05/0.4338, allocations: 136 kB / 0.6709 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.65e-05/0.4339, allocations: 13.06 kB / 0.671 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.058e-05/0.4339, allocations: 20.7 kB / 0.671 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4339, allocations: 0.625 kB / 0.671 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4339, allocations: 0 / 0.671 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.4339, allocations: 1.625 kB / 0.671 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.4341, allocations: 239 kB / 0.6712 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4341, allocations: 0 / 0.6712 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.4343, allocations: 36.66 kB / 0.6712 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.4344, allocations: 1.438 kB / 0.6712 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.4344, allocations: 5.094 kB / 0.6712 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4344, allocations: 0 / 0.6712 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4344, allocations: 1.406 kB / 0.6713 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006676/0.4351, allocations: 351 kB / 0.6716 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.063e-05/0.4351, allocations: 89.39 kB / 0.6717 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.4351, allocations: 9.438 kB / 0.6717 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.4353, allocations: 17.78 kB / 0.6717 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.272e-05/0.4354, allocations: 21.17 kB / 0.6717 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-06/0.4354, allocations: 2.469 kB / 0.6717 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.939e-05/0.4354, allocations: 115.9 kB / 0.6718 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4354, allocations: 0 / 0.6718 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002729/0.4357, allocations: 35.75 kB / 0.6719 GB, free: 1.004 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.000812/0.4365, allocations: 0.8758 MB / 0.6727 GB, free: 240 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004609/0.437, allocations: 142.6 kB / 0.6729 GB, free: 180 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.437, allocations: 0 / 0.6729 GB, free: 180 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.4372, allocations: 79.95 kB / 0.6729 GB, free: 144 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.4376, allocations: 16.52 kB / 0.6729 GB, free: 136 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.4403, allocations: 1.987 MB / 0.6749 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.4405, allocations: 0.7137 MB / 0.6756 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.017e-05/0.4406, allocations: 13.95 kB / 0.6756 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.091e-05/0.4407, allocations: 45.92 kB / 0.6756 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.4407, allocations: 0 / 0.6756 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.4613, allocations: 3.303 MB / 0.6789 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/8.177, allocations: 8.672 kB / 0.6789 GB, free: 12.04 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling_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_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)