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.001551/0.001551, allocations: 106.5 kB / 16.4 MB, free: 6.5 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.00172/0.00172, allocations: 193.2 kB / 17.34 MB, free: 5.742 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7262/0.7262, allocations: 115.3 MB / 406.5 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002431/0.002432, allocations: 70.61 kB / 0.5572 GB, free: 32.41 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1683, allocations: 76.18 MB / 0.6316 GB, free: 4.906 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005902/0.1743, allocations: 3.997 MB / 0.6355 GB, free: 0.875 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002177/0.1745, allocations: 159.5 kB / 0.6356 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.008e-05/0.1746, allocations: 4 kB / 0.6356 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.1747, allocations: 3.984 kB / 0.6356 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 8.546e-05/0.1748, allocations: 11.92 kB / 0.6356 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.1752, allocations: 85.75 kB / 0.6357 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 9.333e-05/0.1753, allocations: 27.92 kB / 0.6358 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.131e-05/0.1754, allocations: 7.984 kB / 0.6358 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.042e-05/0.1754, allocations: 23.86 kB / 0.6358 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.807e-05/0.1755, allocations: 15.92 kB / 0.6358 GB, free: 0.543 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.1755, allocations: 0 / 0.6358 GB, free: 0.543 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.1757, allocations: 63.8 kB / 0.6359 GB, free: 492 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.884e-05/0.1758, allocations: 4 kB / 0.6359 GB, free: 488 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.543e-05/0.1758, allocations: 15.92 kB / 0.6359 GB, free: 472 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.176, allocations: 42.72 kB / 0.6359 GB, free: 432 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.176, allocations: 0 / 0.6359 GB, free: 432 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.176, allocations: 0 / 0.6359 GB, free: 432 kB / 478.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.176, allocations: 0 / 0.6359 GB, free: 432 kB / 478.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.0003638/0.1764, allocations: 339.5 kB / 0.6362 GB, free: 44 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.1764, allocations: 12.03 kB / 0.6363 GB, free: 32 kB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.421e-05/0.1765, allocations: 34.75 kB / 0.6363 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.1765, allocations: 0.9375 kB / 0.6363 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.1766, allocations: 165.2 kB / 0.6364 GB, free: 15.79 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.912e-05/0.1767, allocations: 30.2 kB / 0.6365 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.1767, allocations: 4.125 kB / 0.6365 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.1769, allocations: 49.67 kB / 0.6365 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1769, allocations: 4 kB / 0.6365 GB, free: 15.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1769, allocations: 0 / 0.6365 GB, free: 15.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.317e-05/0.1769, allocations: 0 / 0.6365 GB, free: 15.69 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.759e-05/0.177, allocations: 11.98 kB / 0.6365 GB, free: 15.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004648/0.1775, allocations: 333.9 kB / 0.6369 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.056e-05/0.1775, allocations: 30.55 kB / 0.6369 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.489e-05/0.1775, allocations: 4.859 kB / 0.6369 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.559e-05/0.1776, allocations: 85.17 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.1777, allocations: 34.56 kB / 0.637 GB, free: 15.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1777, allocations: 0 / 0.637 GB, free: 15.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001568/0.1778, allocations: 33.69 kB / 0.637 GB, free: 15.05 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.1779, allocations: 55.34 kB / 0.6371 GB, free: 14.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.842e-05/0.178, allocations: 109.8 kB / 0.6372 GB, free: 14.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.178, allocations: 25.7 kB / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.338e-05/0.1781, allocations: 92.23 kB / 0.6373 GB, free: 14.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.236e-06/0.1781, allocations: 7.906 kB / 0.6373 GB, free: 14.74 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.1781, allocations: 13.72 kB / 0.6373 GB, free: 14.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1782, allocations: 318.8 kB / 0.6376 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.721e-05/0.1783, allocations: 7.984 kB / 0.6376 GB, free: 14.39 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.118e-05/0.1783, allocations: 13.72 kB / 0.6377 GB, free: 14.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.535e-05/0.1783, allocations: 25.72 kB / 0.6377 GB, free: 14.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1783, allocations: 0 / 0.6377 GB, free: 14.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.705e-05/0.1784, allocations: 49.56 kB / 0.6377 GB, free: 14.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1784, allocations: 9.406 kB / 0.6377 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1784, allocations: 0 / 0.6377 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1785, allocations: 3.938 kB / 0.6377 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.574e-05/0.1785, allocations: 8 kB / 0.6377 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1785, allocations: 3.984 kB / 0.6377 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.086e-05/0.1786, allocations: 8.062 kB / 0.6378 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.1786, allocations: 0 / 0.6378 GB, free: 14.25 MB / 494.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 7.374e-05/0.1786, allocations: 117.7 kB / 0.6379 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.704e-05/0.1787, allocations: 3.906 kB / 0.6379 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.1788, allocations: 121 kB / 0.638 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.779e-05/0.1789, allocations: 176.3 kB / 0.6382 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.585e-05/0.1789, allocations: 184.2 kB / 0.6383 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.966e-05/0.179, allocations: 180.3 kB / 0.6385 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.1792, allocations: 413.1 kB / 0.6389 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.84e-05/0.1792, allocations: 101 kB / 0.639 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.369e-05/0.1793, allocations: 108.9 kB / 0.6391 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.453e-05/0.1793, allocations: 180.2 kB / 0.6393 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.1e-05/0.1794, allocations: 180.3 kB / 0.6394 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-05/0.1795, allocations: 184.2 kB / 0.6396 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.474e-05/0.1795, allocations: 184.3 kB / 0.6398 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.1797, allocations: 307.7 kB / 0.6401 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.004e-05/0.1798, allocations: 182.1 kB / 0.6403 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.884e-05/0.1799, allocations: 184.2 kB / 0.6404 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.18, allocations: 109 kB / 0.6405 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.293e-05/0.1801, allocations: 180.2 kB / 0.6407 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/0.1801, allocations: 105 kB / 0.6408 GB, free: 10.91 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.292e-05/0.1802, allocations: 83.28 kB / 0.6409 GB, free: 10.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1802, allocations: 4 kB / 0.6409 GB, free: 10.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002473/0.1804, allocations: 27.86 kB / 0.6409 GB, free: 10.79 MB / 494.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.0005514/0.181, allocations: 0.8243 MB / 0.6417 GB, free: 9.941 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.335e-05/0.1811, allocations: 12 kB / 0.6417 GB, free: 9.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1811, allocations: 0 / 0.6417 GB, free: 9.93 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.086e-06/0.1811, allocations: 0 / 0.6417 GB, free: 9.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.1815, allocations: 467.6 kB / 0.6422 GB, free: 9.469 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.1825, allocations: 1.324 MB / 0.6435 GB, free: 8.055 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.1828, allocations: 0.6729 MB / 0.6441 GB, free: 7.355 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.702e-05/0.1828, allocations: 4 kB / 0.6441 GB, free: 7.352 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.431e-05/0.1828, allocations: 11.44 kB / 0.6441 GB, free: 7.34 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1828, allocations: 0 / 0.6441 GB, free: 7.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01538/0.1982, allocations: 1.508 MB / 0.6456 GB, free: 5.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.187/7.385, allocations: 13.72 kB / 0.6456 GB, free: 5.922 MB / 494.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)