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.006795/0.006795, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.001785/0.001785, allocations: 192 kB / 16.67 MB, free: 5.48 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7946/0.7946, allocations: 135.6 MB / 426.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 66.64 kB / 0.5857 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1397, allocations: 81.02 MB / 0.6648 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003312/0.143, allocations: 2.031 MB / 0.6668 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008802/0.1439, allocations: 0.5299 MB / 0.6673 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.194e-05/0.144, allocations: 0 / 0.6673 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.1441, allocations: 23.73 kB / 0.6674 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.691e-05/0.1442, allocations: 43.56 kB / 0.6674 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.1444, allocations: 59.86 kB / 0.6675 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.1447, allocations: 187.2 kB / 0.6676 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.1449, allocations: 74.28 kB / 0.6677 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.145, allocations: 75.77 kB / 0.6678 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.1452, allocations: 79.62 kB / 0.6678 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.464e-05/0.1452, allocations: 19.94 kB / 0.6679 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.167e-05/0.1452, allocations: 12 kB / 0.6679 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.135e-05/0.1453, allocations: 35.89 kB / 0.6679 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.898e-05/0.1454, allocations: 87.55 kB / 0.668 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.1456, allocations: 171.5 kB / 0.6682 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1456, allocations: 4 kB / 0.6682 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.032e-06/0.1456, allocations: 0 / 0.6682 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.1456, allocations: 0 / 0.6682 GB, free: 2.254 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.00082/0.1465, allocations: 494.6 kB / 0.6686 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1465, allocations: 9.109 kB / 0.6686 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.361e-05/0.1466, allocations: 46.73 kB / 0.6687 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.994e-05/0.1466, allocations: 28.73 kB / 0.6687 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.1469, allocations: 212 kB / 0.6689 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.749e-05/0.147, allocations: 42.27 kB / 0.669 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/0.147, allocations: 12.38 kB / 0.669 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.1474, allocations: 158.8 kB / 0.6691 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1474, allocations: 0 / 0.6691 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.1475, allocations: 7.938 kB / 0.6691 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1475, allocations: 4 kB / 0.6691 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005199/0.148, allocations: 143.9 kB / 0.6693 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008326/0.1488, allocations: 0.5308 MB / 0.6698 GB, free: 432 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.1493, allocations: 138.6 kB / 0.6699 GB, free: 284 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.1496, allocations: 80.8 kB / 0.67 GB, free: 200 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.1496, allocations: 4 kB / 0.67 GB, free: 196 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1496, allocations: 34.5 kB / 0.67 GB, free: 152 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.1496, allocations: 0 / 0.67 GB, free: 152 kB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.000769/0.1504, allocations: 217.4 kB / 0.6702 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.1504, allocations: 59.41 kB / 0.6703 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.1506, allocations: 150.2 kB / 0.6704 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1506, allocations: 25.7 kB / 0.6705 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 9.128e-05/0.1507, allocations: 128.2 kB / 0.6706 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.1508, allocations: 43.62 kB / 0.6706 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.917e-05/0.1508, allocations: 29.7 kB / 0.6707 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.151, allocations: 322.8 kB / 0.671 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.1512, allocations: 63.95 kB / 0.671 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.1514, allocations: 85.89 kB / 0.6711 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.1519, allocations: 153 kB / 0.6713 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1519, allocations: 0 / 0.6713 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000508/0.1524, allocations: 189.5 kB / 0.6714 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1524, allocations: 4 kB / 0.6714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1524, allocations: 0 / 0.6714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.1525, allocations: 0 / 0.6714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.1527, allocations: 39.97 kB / 0.6715 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1527, allocations: 4 kB / 0.6715 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.1528, allocations: 27.86 kB / 0.6715 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.1528, allocations: 8 kB / 0.6715 GB, free: 14.55 MB / 0.5137 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 0.0001146/0.153, allocations: 133.8 kB / 0.6716 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.742e-05/0.153, allocations: 15.91 kB / 0.6717 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.332e-05/0.1531, allocations: 20.7 kB / 0.6717 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1531, allocations: 0 / 0.6717 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1531, allocations: 0 / 0.6717 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1531, allocations: 0 / 0.6717 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.1534, allocations: 241.5 kB / 0.6719 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1534, allocations: 3.938 kB / 0.6719 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.1536, allocations: 35.97 kB / 0.6719 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1536, allocations: 4 kB / 0.672 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.1536, allocations: 3.984 kB / 0.672 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.1536, allocations: 4 kB / 0.672 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1536, allocations: 3.938 kB / 0.672 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000785/0.1544, allocations: 347.2 kB / 0.6723 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.334e-05/0.1545, allocations: 92.98 kB / 0.6724 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.1545, allocations: 4 kB / 0.6724 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.1547, allocations: 19.97 kB / 0.6724 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/0.1547, allocations: 11.98 kB / 0.6724 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.1548, allocations: 4 kB / 0.6724 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.503e-05/0.1549, allocations: 124.1 kB / 0.6725 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1549, allocations: 0 / 0.6725 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002525/0.1551, allocations: 32 kB / 0.6726 GB, free: 13.38 MB / 0.5137 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.001078/0.1562, allocations: 0.8767 MB / 0.6734 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004866/0.1567, allocations: 139.8 kB / 0.6736 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1567, allocations: 4.188 kB / 0.6736 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002293/0.1569, allocations: 75.89 kB / 0.6736 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.1573, allocations: 19.98 kB / 0.6737 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002857/0.1602, allocations: 1.985 MB / 0.6756 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.1605, allocations: 0.7197 MB / 0.6763 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.335e-05/0.1606, allocations: 8.562 kB / 0.6763 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.419e-05/0.1607, allocations: 47.42 kB / 0.6763 GB, free: 9.363 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.1607, allocations: 0 / 0.6763 GB, free: 9.363 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1148/0.2755, allocations: 3.298 MB / 0.6796 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.305/8.581, allocations: 0.6562 kB / 0.6796 GB, free: 6.176 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)