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.001464/0.001464, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001808/0.001808, allocations: 191.1 kB / 16.14 MB, free: 6.707 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.301/1.301, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7651/0.7651, allocations: 132.2 MB / 422.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 72.03 kB / 0.5012 GB, free: 9.102 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1313, allocations: 80.19 MB / 0.5795 GB, free: 9.133 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002894/0.1342, allocations: 2.092 MB / 0.5815 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007342/0.135, allocations: 0.522 MB / 0.582 GB, free: 6.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.5e-05/0.135, allocations: 8 kB / 0.582 GB, free: 6.492 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.1352, allocations: 15.86 kB / 0.5821 GB, free: 6.477 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.06e-05/0.1353, allocations: 35.7 kB / 0.5821 GB, free: 6.441 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001889/0.1355, allocations: 51.88 kB / 0.5821 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.1357, allocations: 179.2 kB / 0.5823 GB, free: 6.215 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1358, allocations: 61.88 kB / 0.5824 GB, free: 6.152 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.1359, allocations: 63.77 kB / 0.5824 GB, free: 6.09 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.136, allocations: 91.55 kB / 0.5825 GB, free: 6 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.1361, allocations: 12 kB / 0.5825 GB, free: 5.988 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.858e-05/0.1361, allocations: 8 kB / 0.5825 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.204e-05/0.1361, allocations: 27.91 kB / 0.5826 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.495e-05/0.1362, allocations: 83.53 kB / 0.5827 GB, free: 5.871 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.1364, allocations: 163.7 kB / 0.5828 GB, free: 5.711 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1364, allocations: 0 / 0.5828 GB, free: 5.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1364, allocations: 0 / 0.5828 GB, free: 5.711 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1364, allocations: 0 / 0.5828 GB, free: 5.711 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.0007242/0.1371, allocations: 492 kB / 0.5833 GB, free: 5.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1372, allocations: 8.031 kB / 0.5833 GB, free: 5.176 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.285e-05/0.1372, allocations: 46.73 kB / 0.5833 GB, free: 5.121 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.3e-05/0.1373, allocations: 24.66 kB / 0.5834 GB, free: 5.098 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.1375, allocations: 215.5 kB / 0.5836 GB, free: 4.852 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.014e-05/0.1375, allocations: 42.27 kB / 0.5836 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.751e-05/0.1376, allocations: 16.31 kB / 0.5836 GB, free: 4.789 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.138, allocations: 157.5 kB / 0.5838 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.138, allocations: 0 / 0.5838 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.138, allocations: 4 kB / 0.5838 GB, free: 4.625 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.138, allocations: 4 kB / 0.5838 GB, free: 4.621 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004702/0.1385, allocations: 147.9 kB / 0.5839 GB, free: 4.477 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007019/0.1392, allocations: 0.5346 MB / 0.5844 GB, free: 3.879 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004044/0.1396, allocations: 130.7 kB / 0.5846 GB, free: 3.742 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.1398, allocations: 84.73 kB / 0.5846 GB, free: 3.656 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.1399, allocations: 0 / 0.5846 GB, free: 3.656 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.1399, allocations: 38.56 kB / 0.5847 GB, free: 3.609 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 8.92e-07/0.1399, allocations: 0 / 0.5847 GB, free: 3.609 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006898/0.1406, allocations: 225.1 kB / 0.5849 GB, free: 3.387 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.1406, allocations: 51.41 kB / 0.5849 GB, free: 3.324 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.1407, allocations: 158.3 kB / 0.5851 GB, free: 3.164 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.1408, allocations: 25.7 kB / 0.5851 GB, free: 3.133 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.547e-05/0.1408, allocations: 128.1 kB / 0.5852 GB, free: 3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.1409, allocations: 39.39 kB / 0.5853 GB, free: 2.961 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.875e-05/0.141, allocations: 41.7 kB / 0.5853 GB, free: 2.914 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.641e-05/0.1411, allocations: 318.8 kB / 0.5856 GB, free: 2.594 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.1413, allocations: 63.89 kB / 0.5857 GB, free: 2.531 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.1415, allocations: 86.52 kB / 0.5858 GB, free: 2.438 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.1419, allocations: 141.4 kB / 0.5859 GB, free: 2.293 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1419, allocations: 0 / 0.5859 GB, free: 2.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004627/0.1423, allocations: 193.3 kB / 0.5861 GB, free: 2.098 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.1424, allocations: 4 kB / 0.5861 GB, free: 2.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1424, allocations: 0 / 0.5861 GB, free: 2.094 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1424, allocations: 7.938 kB / 0.5861 GB, free: 2.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.1426, allocations: 35.97 kB / 0.5861 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1426, allocations: 64 / 0.5861 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.1428, allocations: 31.91 kB / 0.5862 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.1428, allocations: 4 kB / 0.5862 GB, free: 2.016 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 9.99e-05/0.1429, allocations: 129.7 kB / 0.5863 GB, free: 1.879 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.777e-05/0.1429, allocations: 15.81 kB / 0.5863 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.306e-05/0.143, allocations: 20.7 kB / 0.5863 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.143, allocations: 4 kB / 0.5863 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.143, allocations: 4 kB / 0.5863 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.143, allocations: 3.938 kB / 0.5863 GB, free: 1.832 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.1432, allocations: 237.5 kB / 0.5866 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1433, allocations: 0 / 0.5866 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.1435, allocations: 35.97 kB / 0.5866 GB, free: 1.516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1435, allocations: 0 / 0.5866 GB, free: 1.516 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1435, allocations: 4 kB / 0.5866 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1435, allocations: 0 / 0.5866 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1435, allocations: 0 / 0.5866 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/0.1442, allocations: 347.1 kB / 0.5869 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.1443, allocations: 92.98 kB / 0.587 GB, free: 1.047 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/0.1443, allocations: 8 kB / 0.587 GB, free: 1.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1445, allocations: 20.03 kB / 0.587 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.1445, allocations: 15.92 kB / 0.5871 GB, free: 1.004 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.1445, allocations: 11.98 kB / 0.5871 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.327e-05/0.1446, allocations: 103.3 kB / 0.5872 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1446, allocations: 4 kB / 0.5872 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000264/0.1449, allocations: 35.91 kB / 0.5872 GB, free: 0.8516 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.00091/0.1458, allocations: 0.8683 MB / 0.5881 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004375/0.1462, allocations: 151.8 kB / 0.5882 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1463, allocations: 3.938 kB / 0.5882 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.1465, allocations: 71.94 kB / 0.5883 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.1468, allocations: 20.12 kB / 0.5883 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.1493, allocations: 2.023 MB / 0.5903 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.1496, allocations: 0.716 MB / 0.591 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.416e-05/0.1497, allocations: 16.55 kB / 0.591 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.375e-05/0.1498, allocations: 39.42 kB / 0.591 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1498, allocations: 0 / 0.591 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.482/1.631, allocations: 2.905 MB / 0.5939 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002377/1.632, allocations: 203 kB / 0.594 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.46/4.091, allocations: 0 / 0.594 GB, free: 9.797 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)