Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_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.001179/0.001179, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001172/0.001172, allocations: 187.3 kB / 16.25 MB, free: 6.145 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.196/1.196, allocations: 222.9 MB / 239.9 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6996/0.6996, allocations: 132.2 MB / 422.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.91 kB / 0.5013 GB, free: 9.02 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1415, allocations: 80.2 MB / 0.5797 GB, free: 9.039 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002926/0.1444, allocations: 2.089 MB / 0.5817 GB, free: 6.934 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006779/0.1451, allocations: 0.5182 MB / 0.5822 GB, free: 6.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.2e-05/0.1452, allocations: 4 kB / 0.5822 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.1453, allocations: 15.86 kB / 0.5822 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.227e-05/0.1454, allocations: 35.64 kB / 0.5823 GB, free: 6.355 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001802/0.1456, allocations: 55.94 kB / 0.5823 GB, free: 6.301 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.1458, allocations: 187.2 kB / 0.5825 GB, free: 6.117 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.146, allocations: 66.27 kB / 0.5826 GB, free: 6.051 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.1461, allocations: 71.77 kB / 0.5826 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.947e-05/0.1462, allocations: 79.67 kB / 0.5827 GB, free: 5.902 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.1462, allocations: 16 kB / 0.5827 GB, free: 5.887 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.445e-05/0.1462, allocations: 15.94 kB / 0.5827 GB, free: 5.871 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.391e-05/0.1463, allocations: 39.84 kB / 0.5828 GB, free: 5.832 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.688e-05/0.1464, allocations: 83.59 kB / 0.5829 GB, free: 5.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.1465, allocations: 167.6 kB / 0.583 GB, free: 5.586 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1465, allocations: 4 kB / 0.583 GB, free: 5.582 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1465, allocations: 0 / 0.583 GB, free: 5.582 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.379e-06/0.1465, allocations: 0 / 0.583 GB, free: 5.582 MB / 494.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.000686/0.1472, allocations: 490.8 kB / 0.5835 GB, free: 5.055 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.1473, allocations: 12.03 kB / 0.5835 GB, free: 5.043 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.739e-05/0.1473, allocations: 50.73 kB / 0.5835 GB, free: 4.984 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.1474, allocations: 20.66 kB / 0.5836 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.1476, allocations: 212 kB / 0.5838 GB, free: 4.719 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.1476, allocations: 34.27 kB / 0.5838 GB, free: 4.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.1477, allocations: 16.38 kB / 0.5838 GB, free: 4.664 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.148, allocations: 161.4 kB / 0.584 GB, free: 4.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.1481, allocations: 0 / 0.584 GB, free: 4.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.1481, allocations: 8 kB / 0.584 GB, free: 4.492 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1481, allocations: 4 kB / 0.584 GB, free: 4.488 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.1485, allocations: 143.9 kB / 0.5841 GB, free: 4.348 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006711/0.1492, allocations: 0.5307 MB / 0.5846 GB, free: 3.754 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000377/0.1496, allocations: 142.6 kB / 0.5848 GB, free: 3.605 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.1498, allocations: 80.8 kB / 0.5849 GB, free: 3.523 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.1498, allocations: 0 / 0.5849 GB, free: 3.523 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.1499, allocations: 34.56 kB / 0.5849 GB, free: 3.48 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 9.41e-07/0.1499, allocations: 0 / 0.5849 GB, free: 3.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006159/0.1505, allocations: 217.4 kB / 0.5851 GB, free: 3.262 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.1505, allocations: 55.41 kB / 0.5851 GB, free: 3.195 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.1506, allocations: 162.3 kB / 0.5853 GB, free: 3.031 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.1507, allocations: 29.64 kB / 0.5853 GB, free: 2.996 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.1507, allocations: 124.2 kB / 0.5854 GB, free: 2.867 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.305e-05/0.1508, allocations: 43.39 kB / 0.5855 GB, free: 2.824 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.064e-05/0.1508, allocations: 29.7 kB / 0.5855 GB, free: 2.789 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.506e-05/0.1509, allocations: 322.8 kB / 0.5858 GB, free: 2.465 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.1511, allocations: 55.95 kB / 0.5859 GB, free: 2.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.1513, allocations: 92.2 kB / 0.586 GB, free: 2.312 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/0.1517, allocations: 144.9 kB / 0.5861 GB, free: 2.164 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1517, allocations: 4 kB / 0.5861 GB, free: 2.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00042/0.1521, allocations: 193.3 kB / 0.5863 GB, free: 1.965 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.1521, allocations: 4 kB / 0.5863 GB, free: 1.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1521, allocations: 4.062 kB / 0.5863 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.1521, allocations: 0 / 0.5863 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.1523, allocations: 39.97 kB / 0.5863 GB, free: 1.918 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.1523, allocations: 11.88 kB / 0.5864 GB, free: 1.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.1525, allocations: 23.91 kB / 0.5864 GB, free: 1.883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.1525, allocations: 4 kB / 0.5864 GB, free: 1.879 MB / 494.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 8.722e-05/0.1526, allocations: 133.8 kB / 0.5865 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.1526, allocations: 11.81 kB / 0.5865 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.963e-05/0.1527, allocations: 20.7 kB / 0.5865 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1527, allocations: 0 / 0.5865 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1527, allocations: 0 / 0.5865 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1527, allocations: 4 kB / 0.5865 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.1529, allocations: 237.5 kB / 0.5868 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1529, allocations: 0 / 0.5868 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.1531, allocations: 35.91 kB / 0.5868 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1531, allocations: 4 kB / 0.5868 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.1531, allocations: 8 kB / 0.5868 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.1531, allocations: 3.984 kB / 0.5868 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1531, allocations: 0 / 0.5868 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006319/0.1538, allocations: 343.1 kB / 0.5871 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.882e-05/0.1538, allocations: 88.98 kB / 0.5872 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.1539, allocations: 4 kB / 0.5872 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.154, allocations: 19.97 kB / 0.5873 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.1541, allocations: 15.98 kB / 0.5873 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.1541, allocations: 0 / 0.5873 GB, free: 0.875 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.605e-05/0.1542, allocations: 115.2 kB / 0.5874 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1542, allocations: 4.062 kB / 0.5874 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.1544, allocations: 31.91 kB / 0.5874 GB, free: 0.7266 MB / 494.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.000848/0.1553, allocations: 0.8796 MB / 0.5883 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004198/0.1557, allocations: 144.5 kB / 0.5884 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.1557, allocations: 0 / 0.5884 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.1559, allocations: 88 kB / 0.5885 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.1562, allocations: 16 kB / 0.5885 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.1585, allocations: 2.038 MB / 0.5905 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.1588, allocations: 0.7158 MB / 0.5912 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.606e-05/0.1588, allocations: 12.55 kB / 0.5912 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.583e-05/0.1589, allocations: 43.36 kB / 0.5912 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1589, allocations: 4 kB / 0.5913 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3452/0.5041, allocations: 2.999 MB / 0.5942 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.5044, allocations: 195.4 kB / 0.5944 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.232, allocations: 0 / 0.5944 GB, free: 9.578 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)