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.0007291/0.0007291, allocations: 97.25 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008673/0.000867, allocations: 179.9 kB / 16.92 MB, free: 6.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.387/1.387, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7055/0.7055, allocations: 115.5 MB / 407.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002959/0.0002959, allocations: 11.98 kB / 495.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1364, allocations: 77.53 MB / 0.56 GB, free: 8.953 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003524/0.14, allocations: 3.673 MB / 0.5636 GB, free: 5.254 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001683/0.1402, allocations: 159.5 kB / 0.5638 GB, free: 5.098 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.198e-05/0.1402, allocations: 0 / 0.5638 GB, free: 5.098 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.432e-05/0.1403, allocations: 3.938 kB / 0.5638 GB, free: 5.094 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.832e-05/0.1403, allocations: 11.97 kB / 0.5638 GB, free: 5.082 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.1406, allocations: 75.77 kB / 0.5639 GB, free: 5.008 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.402e-05/0.1407, allocations: 63.8 kB / 0.5639 GB, free: 4.945 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.59e-05/0.1407, allocations: 4 kB / 0.5639 GB, free: 4.941 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.931e-05/0.1408, allocations: 12 kB / 0.5639 GB, free: 4.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.592e-05/0.1408, allocations: 19.91 kB / 0.564 GB, free: 4.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.1408, allocations: 0 / 0.564 GB, free: 4.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.141, allocations: 71.8 kB / 0.564 GB, free: 4.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.421e-05/0.1411, allocations: 3.984 kB / 0.564 GB, free: 4.836 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.372e-05/0.1411, allocations: 45.62 kB / 0.5641 GB, free: 4.785 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.923e-05/0.1412, allocations: 48.17 kB / 0.5641 GB, free: 4.738 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1412, allocations: 0 / 0.5641 GB, free: 4.738 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1412, allocations: 0 / 0.5641 GB, free: 4.738 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.1412, allocations: 0 / 0.5641 GB, free: 4.738 MB / 430.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.0002602/0.1415, allocations: 327.5 kB / 0.5644 GB, free: 4.371 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.1415, allocations: 8.031 kB / 0.5644 GB, free: 4.363 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.608e-05/0.1416, allocations: 42.73 kB / 0.5645 GB, free: 4.312 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.098e-05/0.1416, allocations: 0.9375 kB / 0.5645 GB, free: 4.312 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.608e-05/0.1417, allocations: 164.4 kB / 0.5646 GB, free: 4.113 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/0.1417, allocations: 34.2 kB / 0.5647 GB, free: 4.074 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.642e-06/0.1418, allocations: 4.125 kB / 0.5647 GB, free: 4.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.728e-05/0.1419, allocations: 37.69 kB / 0.5647 GB, free: 4.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-06/0.1419, allocations: 4 kB / 0.5647 GB, free: 4.023 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.1419, allocations: 4 kB / 0.5647 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.1419, allocations: 7.938 kB / 0.5647 GB, free: 4.012 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.753e-05/0.142, allocations: 15.97 kB / 0.5647 GB, free: 3.996 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003451/0.1423, allocations: 334 kB / 0.5651 GB, free: 3.602 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.657e-05/0.1423, allocations: 14.58 kB / 0.5651 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.23e-05/0.1424, allocations: 8.922 kB / 0.5651 GB, free: 3.566 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.359e-05/0.1424, allocations: 89.09 kB / 0.5652 GB, free: 3.461 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.1425, allocations: 42.44 kB / 0.5652 GB, free: 3.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1425, allocations: 0 / 0.5652 GB, free: 3.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001061/0.1426, allocations: 33.7 kB / 0.5652 GB, free: 3.371 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/0.1426, allocations: 51.41 kB / 0.5653 GB, free: 3.309 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.245e-05/0.1427, allocations: 101.8 kB / 0.5654 GB, free: 3.199 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.1427, allocations: 29.83 kB / 0.5654 GB, free: 3.164 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.678e-05/0.1428, allocations: 91.98 kB / 0.5655 GB, free: 3.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.17e-06/0.1428, allocations: 3.906 kB / 0.5655 GB, free: 3.066 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.1428, allocations: 17.7 kB / 0.5655 GB, free: 3.043 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.902e-05/0.1429, allocations: 318.8 kB / 0.5658 GB, free: 2.723 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.1429, allocations: 0 / 0.5658 GB, free: 2.723 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.013e-05/0.1429, allocations: 13.72 kB / 0.5658 GB, free: 2.703 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.197e-05/0.1429, allocations: 33.64 kB / 0.5659 GB, free: 2.664 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.143, allocations: 0 / 0.5659 GB, free: 2.664 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.741e-05/0.143, allocations: 45.64 kB / 0.5659 GB, free: 2.613 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.143, allocations: 9.859 kB / 0.5659 GB, free: 2.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.1431, allocations: 4 kB / 0.5659 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.1431, allocations: 0 / 0.5659 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.777e-05/0.1431, allocations: 4 kB / 0.5659 GB, free: 2.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.1431, allocations: 0 / 0.5659 GB, free: 2.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.783e-05/0.1431, allocations: 4 kB / 0.5659 GB, free: 2.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.1432, allocations: 4.062 kB / 0.5659 GB, free: 2.59 MB / 430.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.529e-05/0.1432, allocations: 109.8 kB / 0.566 GB, free: 2.473 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.394e-05/0.1432, allocations: 8 kB / 0.5661 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.1433, allocations: 120.9 kB / 0.5662 GB, free: 2.336 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.165e-05/0.1434, allocations: 180.2 kB / 0.5663 GB, free: 2.152 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.692e-05/0.1434, allocations: 180.3 kB / 0.5665 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.998e-05/0.1435, allocations: 188.2 kB / 0.5667 GB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.1437, allocations: 409.1 kB / 0.5671 GB, free: 1.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.68e-05/0.1437, allocations: 108.9 kB / 0.5672 GB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.987e-05/0.1437, allocations: 105 kB / 0.5673 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.782e-05/0.1438, allocations: 180.3 kB / 0.5675 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.653e-05/0.1439, allocations: 184.2 kB / 0.5676 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.591e-05/0.1439, allocations: 176.3 kB / 0.5678 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.757e-05/0.144, allocations: 188.2 kB / 0.568 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.1441, allocations: 311.7 kB / 0.5683 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.248e-05/0.1441, allocations: 186.1 kB / 0.5685 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.698e-05/0.1442, allocations: 180.2 kB / 0.5686 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.1444, allocations: 108.9 kB / 0.5687 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/0.1444, allocations: 184.3 kB / 0.5689 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.145e-05/0.1445, allocations: 108.9 kB / 0.569 GB, free: 15.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.945e-05/0.1445, allocations: 79.28 kB / 0.5691 GB, free: 15.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1445, allocations: 4 kB / 0.5691 GB, free: 15.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00022/0.1447, allocations: 19.94 kB / 0.5691 GB, free: 15.12 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.0003803/0.1451, allocations: 0.8204 MB / 0.5699 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 5.313e-05/0.1452, allocations: 23.92 kB / 0.5699 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1452, allocations: 0 / 0.5699 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.122e-06/0.1452, allocations: 0 / 0.5699 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.1455, allocations: 0.5205 MB / 0.5704 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008082/0.1464, allocations: 1.339 MB / 0.5718 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.1466, allocations: 0.6731 MB / 0.5724 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.151e-05/0.1466, allocations: 4.422 kB / 0.5724 GB, free: 11.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.97e-05/0.1466, allocations: 11.42 kB / 0.5724 GB, free: 11.58 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1466, allocations: 4 kB / 0.5724 GB, free: 11.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.559/2.706, allocations: 1.303 MB / 0.5737 GB, free: 10.41 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000284/2.706, allocations: 210.6 kB / 0.5739 GB, free: 10.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.986/5.692, allocations: 0 / 0.5739 GB, free: 10.15 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)