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.007757/0.007757, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001766/0.001767, allocations: 195.9 kB / 16.67 MB, free: 5.922 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.237/1.237, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.73/0.73, allocations: 132.2 MB / 422.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001418, allocations: 70.59 kB / 0.5808 GB, free: 24.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1352, allocations: 80.2 MB / 0.6592 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002999/0.1383, allocations: 2.026 MB / 0.6611 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009251/0.1392, allocations: 0.5376 MB / 0.6617 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.1394, allocations: 4 kB / 0.6617 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.1395, allocations: 23.72 kB / 0.6617 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.1397, allocations: 39.58 kB / 0.6617 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.1399, allocations: 59.86 kB / 0.6618 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.1402, allocations: 183.2 kB / 0.662 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.1403, allocations: 70.31 kB / 0.662 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.1405, allocations: 75.7 kB / 0.6621 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.1406, allocations: 79.62 kB / 0.6622 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.1407, allocations: 19.98 kB / 0.6622 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.831e-05/0.1407, allocations: 12 kB / 0.6622 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.969e-05/0.1408, allocations: 35.91 kB / 0.6622 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.921e-05/0.1409, allocations: 87.53 kB / 0.6623 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.1411, allocations: 171 kB / 0.6625 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1411, allocations: 4 kB / 0.6625 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1411, allocations: 0 / 0.6625 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.139e-05/0.1411, allocations: 4 kB / 0.6625 GB, free: 7.328 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.0007484/0.1419, allocations: 494.7 kB / 0.663 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1419, allocations: 8.031 kB / 0.663 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.75e-05/0.142, allocations: 46.73 kB / 0.663 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.133e-05/0.142, allocations: 20.75 kB / 0.663 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.1422, allocations: 212 kB / 0.6632 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-05/0.1423, allocations: 42.25 kB / 0.6633 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.1423, allocations: 16.36 kB / 0.6633 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.1427, allocations: 149.5 kB / 0.6634 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1427, allocations: 0 / 0.6634 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.1428, allocations: 11.98 kB / 0.6634 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1428, allocations: 0 / 0.6634 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004334/0.1432, allocations: 153.2 kB / 0.6636 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007488/0.144, allocations: 0.5268 MB / 0.6641 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003997/0.1444, allocations: 134.7 kB / 0.6642 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.1446, allocations: 76.81 kB / 0.6643 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.1446, allocations: 4 kB / 0.6643 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.1447, allocations: 30.56 kB / 0.6643 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.324e-06/0.1447, allocations: 0 / 0.6643 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006602/0.1453, allocations: 229.2 kB / 0.6646 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.1454, allocations: 55.41 kB / 0.6646 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.1455, allocations: 154.2 kB / 0.6648 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.1455, allocations: 25.7 kB / 0.6648 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.003e-05/0.1456, allocations: 132.1 kB / 0.6649 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.504e-05/0.1456, allocations: 43.44 kB / 0.665 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.103e-05/0.1457, allocations: 25.72 kB / 0.665 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.1458, allocations: 322.8 kB / 0.6653 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.146, allocations: 63.94 kB / 0.6653 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.1462, allocations: 86.52 kB / 0.6654 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/0.1465, allocations: 150.3 kB / 0.6656 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1465, allocations: 0 / 0.6656 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004314/0.147, allocations: 193.3 kB / 0.6658 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.147, allocations: 4 kB / 0.6658 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.147, allocations: 0 / 0.6658 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.147, allocations: 4 kB / 0.6658 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.1472, allocations: 39.91 kB / 0.6658 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1472, allocations: 0 / 0.6658 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.1474, allocations: 31.81 kB / 0.6658 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.1474, allocations: 8.062 kB / 0.6658 GB, free: 3.625 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.1e-05/0.1475, allocations: 125.7 kB / 0.666 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.446e-05/0.1475, allocations: 15.91 kB / 0.666 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.391e-05/0.1476, allocations: 16.72 kB / 0.666 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.1476, allocations: 0 / 0.666 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1476, allocations: 0 / 0.666 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1476, allocations: 3.984 kB / 0.666 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.1478, allocations: 241.4 kB / 0.6662 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1478, allocations: 0 / 0.6662 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.148, allocations: 39.91 kB / 0.6663 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.148, allocations: 3.984 kB / 0.6663 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.1481, allocations: 8 kB / 0.6663 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1481, allocations: 0 / 0.6663 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1481, allocations: 0 / 0.6663 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006394/0.1487, allocations: 335.2 kB / 0.6666 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.995e-05/0.1488, allocations: 92.89 kB / 0.6667 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.1488, allocations: 7.984 kB / 0.6667 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.149, allocations: 15.98 kB / 0.6667 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.149, allocations: 19.91 kB / 0.6667 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.149, allocations: 4 kB / 0.6667 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.604e-05/0.1491, allocations: 115.3 kB / 0.6668 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1491, allocations: 0 / 0.6668 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002486/0.1494, allocations: 35.91 kB / 0.6669 GB, free: 2.465 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.0008639/0.1502, allocations: 0.8635 MB / 0.6677 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004224/0.1507, allocations: 151.4 kB / 0.6679 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1507, allocations: 0 / 0.6679 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001916/0.1509, allocations: 75.88 kB / 0.6679 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.1513, allocations: 25.84 kB / 0.668 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.1537, allocations: 1.985 MB / 0.6699 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.1539, allocations: 0.7157 MB / 0.6706 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.062e-05/0.154, allocations: 12.55 kB / 0.6706 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.734e-05/0.1541, allocations: 43.42 kB / 0.6707 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.1541, allocations: 0 / 0.6707 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.1761, allocations: 3.356 MB / 0.6739 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.261/7.437, allocations: 8.094 kB / 0.6739 GB, free: 11.24 MB / 0.5137 GB (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)