Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary",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.005557/0.005557, allocations: 99.45 kB / 15.73 MB, free: 6.047 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.001294/0.001294, allocations: 183.4 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04616/0.04616, allocations: 9.093 MB / 279 MB, free: 2.957 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 71.91 kB / 387 MB, free: 47.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09661/0.09806, allocations: 48.18 MB / 435.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.01953/0.1176, allocations: 19.78 MB / 455 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01626/0.1339, allocations: 17.14 MB / 472.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004285/0.1344, allocations: 8 kB / 472.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.1359, allocations: 0.5685 MB / 472.7 MB, free: 2.441 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.0124/0.1483, allocations: 5.296 MB / 478 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00278/0.1511, allocations: 1.01 MB / 479 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.1521, allocations: 0.7902 MB / 479.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.1523, allocations: 41.78 kB / 479.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004751/0.1527, allocations: 334.7 kB / 480.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003612/0.1531, allocations: 306.6 kB / 480.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.303e-05/0.1532, allocations: 32 kB / 480.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0184/0.1716, allocations: 9.42 MB / 489.9 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.1718, allocations: 99.47 kB / 490 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006305/0.1724, allocations: 274.5 kB / 490.3 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.1841, allocations: 4.111 MB / 494.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1841, allocations: 0 / 494.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1841, allocations: 4 kB / 494.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.1842, allocations: 0 / 494.4 MB, free: 12.69 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.002664/0.1868, allocations: 1.197 MB / 495.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1869, allocations: 12.03 kB / 495.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.187, allocations: 102.5 kB / 495.7 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004821/0.1875, allocations: 91.19 kB / 495.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.1877, allocations: 226.3 kB / 496 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.1878, allocations: 20.5 kB / 496 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.1878, allocations: 28 kB / 496 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.1895, allocations: 1.263 MB / 497.3 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1895, allocations: 0 / 497.3 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.542e-05/0.1895, allocations: 19.92 kB / 497.3 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.541e-05/0.1896, allocations: 31.94 kB / 497.3 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002559/0.1921, allocations: 2.311 MB / 499.7 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.1946, allocations: 2.162 MB / 0.4901 GB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/0.1963, allocations: 1.342 MB / 0.4914 GB, free: 3.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.1976, allocations: 1.278 MB / 0.4926 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02253/0.2201, allocations: 11.21 MB / 0.5036 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/0.2202, allocations: 39.12 kB / 0.5036 GB, free: 5.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 3.757e-06/0.2202, allocations: 0 / 0.5036 GB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.004877/0.2251, allocations: 3.603 MB / 0.5071 GB, free: 1.773 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.2252, allocations: 63.91 kB / 0.5072 GB, free: 1.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.2253, allocations: 113.7 kB / 0.5073 GB, free: 1.578 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/0.2254, allocations: 37.7 kB / 0.5073 GB, free: 1.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.2254, allocations: 87.08 kB / 0.5074 GB, free: 1.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005318/0.226, allocations: 0.5694 MB / 0.508 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.2262, allocations: 150.2 kB / 0.5081 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.2263, allocations: 321.9 kB / 0.5084 GB, free: 404 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.2276, allocations: 1.018 MB / 0.5094 GB, free: 15.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.2288, allocations: 1.035 MB / 0.5104 GB, free: 14.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/0.2313, allocations: 2.225 MB / 0.5126 GB, free: 12.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.2313, allocations: 8 kB / 0.5126 GB, free: 12.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002851/0.2342, allocations: 2.332 MB / 0.5149 GB, free: 9.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.2342, allocations: 4 kB / 0.5149 GB, free: 9.766 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2343, allocations: 0 / 0.5149 GB, free: 9.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.2343, allocations: 4 kB / 0.5149 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006272/0.2349, allocations: 123.8 kB / 0.515 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.2349, allocations: 3.938 kB / 0.515 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/0.2354, allocations: 90.84 kB / 0.5151 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/0.2354, allocations: 23.97 kB / 0.5151 GB, free: 9.523 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sat_pminus.vap.phase,sat_pminus.liq.phase,sat_pplus.vap.phase,sat_pplus.liq.phase,sat_Tminus.vap.phase,sat_Tminus.liq.phase,sat_Tplus.vap.phase,sat_Tplus.liq.phase,sat.vap.phase,sat.liq.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 0.0002437/0.2357, allocations: 168.8 kB / 0.5153 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.2359, allocations: 55.25 kB / 0.5153 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003455/0.2394, allocations: 2.636 MB / 0.5179 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-05/0.2394, allocations: 31.94 kB / 0.5179 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2394, allocations: 0 / 0.5179 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.2394, allocations: 7.922 kB / 0.5179 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.2406, allocations: 1.159 MB / 0.5191 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2406, allocations: 4 kB / 0.5191 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006373/0.2413, allocations: 135.8 kB / 0.5192 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.097e-05/0.2413, allocations: 8 kB / 0.5192 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.705e-05/0.2414, allocations: 16 kB / 0.5192 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.745e-06/0.2414, allocations: 11.92 kB / 0.5192 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2414, allocations: 0 / 0.5192 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002943/0.2443, allocations: 2.333 MB / 0.5215 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.2446, allocations: 215.7 kB / 0.5217 GB, free: 2.645 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/0.2447, allocations: 20 kB / 0.5217 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/0.2451, allocations: 27.98 kB / 0.5218 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.2452, allocations: 52.91 kB / 0.5218 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.254e-05/0.2453, allocations: 31.92 kB / 0.5219 GB, free: 2.516 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.414e-05/0.2453, allocations: 79.59 kB / 0.5219 GB, free: 2.438 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2454, allocations: 0 / 0.5219 GB, free: 2.438 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002426/0.2478, allocations: 0.8862 MB / 0.5228 GB, free: 1.551 MB / 414.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: 10 (sat.liq.phase,sat.vap.phase,sat_Tplus.liq.phase,sat_Tplus.vap.phase,sat_Tminus.liq.phase,sat_Tminus.vap.phase,sat_pplus.liq.phase,sat_pplus.vap.phase,sat_pminus.liq.phase,sat_pminus.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.207/0.4548, allocations: 4.082 MB / 0.5268 GB, free: 96.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003522/0.4583, allocations: 2.359 MB / 0.5291 GB, free: 96.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4584, allocations: 0 / 0.5291 GB, free: 96.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.4597, allocations: 1.254 MB / 0.5303 GB, free: 95.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.4616, allocations: 348.9 kB / 0.5306 GB, free: 95.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.4657, allocations: 2.019 MB / 0.5326 GB, free: 94.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.4661, allocations: 0.8878 MB / 0.5335 GB, free: 93.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006914/0.4668, allocations: 257.1 kB / 0.5337 GB, free: 93.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003065/0.4671, allocations: 192.3 kB / 0.5339 GB, free: 93.83 MB / 414.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4671, allocations: 0 / 0.5339 GB, free: 93.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06489/0.532, allocations: 43.21 MB / 0.5761 GB, free: 55.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.48, allocations: 12.05 kB / 0.5761 GB, free: 55.5 MB / 414.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe 2>&1)