Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_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.001177/0.001177, allocations: 103.9 kB / 16.27 MB, free: 5.98 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.001207/0.001207, allocations: 192 kB / 17.2 MB, free: 5.609 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.377/1.377, allocations: 222.9 MB / 240.9 MB, free: 15.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8472/0.8472, allocations: 122.8 MB / 413.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002581/0.002581, allocations: 63.91 kB / 0.4912 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4468, allocations: 77.92 MB / 0.5673 GB, free: 32.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00538/0.4523, allocations: 4.002 MB / 0.5712 GB, free: 29.76 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002069/0.4525, allocations: 161.8 kB / 0.5713 GB, free: 29.65 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.4526, allocations: 0 / 0.5713 GB, free: 29.65 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.4527, allocations: 0.8906 kB / 0.5713 GB, free: 29.65 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.922e-05/0.4528, allocations: 14.53 kB / 0.5713 GB, free: 29.64 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.4532, allocations: 85.8 kB / 0.5714 GB, free: 29.6 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.993e-05/0.4533, allocations: 29.14 kB / 0.5715 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.569e-05/0.4533, allocations: 4.797 kB / 0.5715 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.031e-05/0.4534, allocations: 19.41 kB / 0.5715 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.467e-05/0.4535, allocations: 15.91 kB / 0.5715 GB, free: 29.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.4535, allocations: 1.188 kB / 0.5715 GB, free: 29.58 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.4537, allocations: 61.3 kB / 0.5716 GB, free: 29.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.4537, allocations: 4.938 kB / 0.5716 GB, free: 29.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.84e-05/0.4538, allocations: 14.3 kB / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.4539, allocations: 37.14 kB / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4539, allocations: 1.656 kB / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4539, allocations: 0 / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.4539, allocations: 1.031 kB / 0.5716 GB, free: 29.54 MB / 446.1 MB 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.0003389/0.4543, allocations: 345.7 kB / 0.5719 GB, free: 29.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.4543, allocations: 9.969 kB / 0.5719 GB, free: 29.17 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.077e-05/0.4543, allocations: 32.47 kB / 0.572 GB, free: 29.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.4544, allocations: 3.875 kB / 0.572 GB, free: 29.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.606e-05/0.4545, allocations: 170.7 kB / 0.5721 GB, free: 28.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.677e-05/0.4545, allocations: 28.84 kB / 0.5722 GB, free: 28.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-06/0.4546, allocations: 5.375 kB / 0.5722 GB, free: 28.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.4547, allocations: 41.44 kB / 0.5722 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.4547, allocations: 3.938 kB / 0.5722 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.4547, allocations: 1.062 kB / 0.5722 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.4547, allocations: 2.391 kB / 0.5722 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.72e-05/0.4548, allocations: 16.36 kB / 0.5722 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000382/0.4552, allocations: 333.8 kB / 0.5726 GB, free: 28.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.614e-05/0.4552, allocations: 22.95 kB / 0.5726 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.645e-05/0.4552, allocations: 5.562 kB / 0.5726 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.844e-05/0.4553, allocations: 85.98 kB / 0.5727 GB, free: 28.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.4554, allocations: 37 kB / 0.5727 GB, free: 28.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.4554, allocations: 1.031 kB / 0.5727 GB, free: 28.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001391/0.4555, allocations: 36.69 kB / 0.5727 GB, free: 28.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.4555, allocations: 55.84 kB / 0.5728 GB, free: 28.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.326e-05/0.4556, allocations: 105 kB / 0.5729 GB, free: 28.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.4556, allocations: 25.7 kB / 0.5729 GB, free: 28.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.262e-05/0.4557, allocations: 86.81 kB / 0.573 GB, free: 28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-06/0.4557, allocations: 2.766 kB / 0.573 GB, free: 28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.864e-05/0.4557, allocations: 18.64 kB / 0.573 GB, free: 27.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.872e-05/0.4558, allocations: 317.4 kB / 0.5733 GB, free: 27.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.558e-05/0.4558, allocations: 4 kB / 0.5733 GB, free: 27.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.033e-05/0.4558, allocations: 23.86 kB / 0.5733 GB, free: 27.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.412e-05/0.4558, allocations: 19.47 kB / 0.5734 GB, free: 27.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4559, allocations: 0 / 0.5734 GB, free: 27.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.056e-05/0.4559, allocations: 49.66 kB / 0.5734 GB, free: 27.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.456, allocations: 8.344 kB / 0.5734 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.456, allocations: 1.688 kB / 0.5734 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.456, allocations: 5.688 kB / 0.5734 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.218e-05/0.456, allocations: 7.047 kB / 0.5734 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.456, allocations: 1.031 kB / 0.5734 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.866e-05/0.4561, allocations: 5 kB / 0.5734 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.4561, allocations: 2.703 kB / 0.5734 GB, free: 27.57 MB / 446.1 MB 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 5.172e-05/0.4561, allocations: 122 kB / 0.5736 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.789e-05/0.4562, allocations: 5.531 kB / 0.5736 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.4563, allocations: 119.2 kB / 0.5737 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.986e-05/0.4563, allocations: 187.4 kB / 0.5739 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.433e-05/0.4564, allocations: 182.1 kB / 0.574 GB, free: 26.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.124e-05/0.4564, allocations: 181.2 kB / 0.5742 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001567/0.4566, allocations: 410.4 kB / 0.5746 GB, free: 26.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.965e-05/0.4566, allocations: 102.9 kB / 0.5747 GB, free: 26.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.033e-05/0.4566, allocations: 112.9 kB / 0.5748 GB, free: 26.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.66e-05/0.4567, allocations: 177.3 kB / 0.575 GB, free: 25.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.4567, allocations: 183.6 kB / 0.5751 GB, free: 25.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.235e-05/0.4567, allocations: 182.5 kB / 0.5753 GB, free: 25.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.571e-05/0.4568, allocations: 178.6 kB / 0.5755 GB, free: 25.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.197e-05/0.4569, allocations: 310.6 kB / 0.5758 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.4569, allocations: 182.9 kB / 0.576 GB, free: 24.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/0.457, allocations: 182.8 kB / 0.5761 GB, free: 24.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.4571, allocations: 106.7 kB / 0.5762 GB, free: 24.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.4572, allocations: 185.2 kB / 0.5764 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.4572, allocations: 103.9 kB / 0.5765 GB, free: 24.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.931e-05/0.4573, allocations: 82.75 kB / 0.5766 GB, free: 24.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4573, allocations: 1.719 kB / 0.5766 GB, free: 24.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002703/0.4576, allocations: 20.16 kB / 0.5766 GB, free: 24.19 MB / 446.1 MB 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.0004343/0.458, allocations: 0.8266 MB / 0.5774 GB, free: 23.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.601e-05/0.4581, allocations: 11.72 kB / 0.5774 GB, free: 23.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4581, allocations: 2.375 kB / 0.5774 GB, free: 23.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.784e-06/0.4581, allocations: 0 / 0.5774 GB, free: 23.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.4585, allocations: 457.8 kB / 0.5779 GB, free: 22.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00096/0.4594, allocations: 1.329 MB / 0.5792 GB, free: 21.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/0.4596, allocations: 0.6747 MB / 0.5798 GB, free: 20.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.772e-05/0.4597, allocations: 9.531 kB / 0.5798 GB, free: 20.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.4597, allocations: 15.17 kB / 0.5799 GB, free: 20.88 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4597, allocations: 0 / 0.5799 GB, free: 20.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.4795, allocations: 1.481 MB / 0.5813 GB, free: 20.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.462/7.941, allocations: 4.125 kB / 0.5813 GB, free: 20.56 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)