Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",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.007972/0.007972, allocations: 99.56 kB / 15.73 MB, free: 6.48 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.001989/0.001989, allocations: 193.5 kB / 16.68 MB, free: 6.363 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002463/0.002463, allocations: 283 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9832/0.9832, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002648/0.002648, allocations: 95.89 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1447, allocations: 86.98 MB / 0.7659 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005338/0.15, allocations: 4.019 MB / 0.7698 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001999/0.1503, allocations: 151.5 kB / 0.77 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.302e-05/0.1503, allocations: 0 / 0.77 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.272e-05/0.1504, allocations: 7.922 kB / 0.77 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.18e-05/0.1505, allocations: 11.92 kB / 0.77 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.1508, allocations: 83.69 kB / 0.7701 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.563e-05/0.1509, allocations: 31.8 kB / 0.7701 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.742e-05/0.1509, allocations: 7.984 kB / 0.7701 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.64e-05/0.151, allocations: 19.98 kB / 0.7701 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.889e-05/0.151, allocations: 7.984 kB / 0.7701 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.1511, allocations: 4 kB / 0.7701 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.1513, allocations: 59.8 kB / 0.7702 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.804e-05/0.1513, allocations: 7.938 kB / 0.7702 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.417e-05/0.1513, allocations: 7.984 kB / 0.7702 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.1515, allocations: 48.06 kB / 0.7702 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1515, allocations: 0 / 0.7702 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1515, allocations: 0 / 0.7702 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.1515, allocations: 4 kB / 0.7703 GB, free: 4.418 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003736/0.1519, allocations: 339.4 kB / 0.7706 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.1519, allocations: 8.031 kB / 0.7706 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.023e-05/0.152, allocations: 38.75 kB / 0.7706 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.152, allocations: 0.9375 kB / 0.7706 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.1521, allocations: 160.4 kB / 0.7708 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.885e-05/0.1522, allocations: 38.27 kB / 0.7708 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.1522, allocations: 8.062 kB / 0.7708 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.1523, allocations: 45.67 kB / 0.7709 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.1523, allocations: 0 / 0.7709 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-06/0.1523, allocations: 0 / 0.7709 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.1524, allocations: 4 kB / 0.7709 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.098e-05/0.1524, allocations: 19.92 kB / 0.7709 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004128/0.1528, allocations: 330 kB / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.415e-05/0.1529, allocations: 18.61 kB / 0.7712 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.175e-05/0.1529, allocations: 12.92 kB / 0.7712 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.508e-05/0.153, allocations: 81.11 kB / 0.7713 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.153, allocations: 30.56 kB / 0.7713 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 4.037e-06/0.153, allocations: 0 / 0.7713 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.1532, allocations: 49.58 kB / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.1532, allocations: 51.41 kB / 0.7714 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.069e-05/0.1533, allocations: 97.86 kB / 0.7715 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.1533, allocations: 29.83 kB / 0.7716 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.993e-05/0.1534, allocations: 100 kB / 0.7716 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.967e-06/0.1534, allocations: 0 / 0.7716 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.539e-05/0.1534, allocations: 17.72 kB / 0.7717 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1536, allocations: 318.7 kB / 0.772 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.593e-05/0.1536, allocations: 7.984 kB / 0.772 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.328e-05/0.1536, allocations: 13.72 kB / 0.772 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.495e-05/0.1536, allocations: 25.66 kB / 0.772 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1536, allocations: 0 / 0.772 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.838e-05/0.1537, allocations: 53.62 kB / 0.7721 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.1538, allocations: 4 kB / 0.7721 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.1538, allocations: 0 / 0.7721 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.1538, allocations: 0 / 0.7721 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.911e-05/0.1538, allocations: 8 kB / 0.7721 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1538, allocations: 7.969 kB / 0.7721 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.147e-05/0.1539, allocations: 8.016 kB / 0.7721 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.1539, allocations: 4 kB / 0.7721 GB, free: 2.242 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.469e-05/0.154, allocations: 114.4 kB / 0.7722 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.154, allocations: 288 / 0.7722 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.1541, allocations: 120.9 kB / 0.7723 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.924e-05/0.1542, allocations: 180.2 kB / 0.7725 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.687e-05/0.1542, allocations: 184.3 kB / 0.7727 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.959e-05/0.1543, allocations: 184.2 kB / 0.7728 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.1546, allocations: 405.2 kB / 0.7732 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-05/0.1546, allocations: 104.9 kB / 0.7733 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.939e-05/0.1547, allocations: 101 kB / 0.7734 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.061e-05/0.1547, allocations: 188.2 kB / 0.7736 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.925e-05/0.1548, allocations: 188.1 kB / 0.7738 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.615e-05/0.1549, allocations: 180.3 kB / 0.774 GB, free: 204 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.444e-05/0.155, allocations: 180.2 kB / 0.7741 GB, free: 16 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2604/0.4153, allocations: 309.8 kB / 0.7744 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.4154, allocations: 180.7 kB / 0.7746 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.804e-05/0.4155, allocations: 179.8 kB / 0.7748 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.4156, allocations: 111 kB / 0.7749 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.306e-05/0.4157, allocations: 180.7 kB / 0.775 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.4157, allocations: 107.1 kB / 0.7751 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.662e-05/0.4157, allocations: 89.08 kB / 0.7752 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4157, allocations: 0.6562 kB / 0.7752 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003258/0.4161, allocations: 16.16 kB / 0.7753 GB, free: 14.39 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0003296/0.4164, allocations: 0.8299 MB / 0.7761 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.414e-05/0.4165, allocations: 14.66 kB / 0.7761 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4165, allocations: 0.5312 kB / 0.7761 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.4165, allocations: 1.094 kB / 0.7761 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.4168, allocations: 462.5 kB / 0.7765 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007185/0.4176, allocations: 1.326 MB / 0.7778 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.855e-05/0.4176, allocations: 0.6744 MB / 0.7785 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.633e-05/0.4177, allocations: 6.469 kB / 0.7785 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.867e-05/0.4177, allocations: 9.688 kB / 0.7785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of SimCode: time 3.31e-07/0.4177, allocations: 1.188 kB / 0.7785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.066/1.484, allocations: 1.528 MB / 0.78 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/14.21, allocations: 9.094 kB / 0.78 GB, free: 10.86 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)