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.001171/0.001171, allocations: 108 kB / 15.6 MB, free: 132 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.001143/0.001143, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.587/1.587, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04975/0.04975, allocations: 9.11 MB / 278.9 MB, free: 12.17 MB / 238.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.001526/0.001527, allocations: 63.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1166, allocations: 48.18 MB / 386.3 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.02439/0.141, allocations: 19.79 MB / 406.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.1587, allocations: 17.12 MB / 423.2 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003879/0.1591, allocations: 4 kB / 423.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001744/0.1609, allocations: 0.5757 MB / 423.8 MB, free: 3.48 MB / 318.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.278/0.4389, allocations: 5.264 MB / 429.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003325/0.4422, allocations: 1.02 MB / 430.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001276/0.4435, allocations: 0.7874 MB / 430.9 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.4437, allocations: 46.34 kB / 430.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005758/0.4443, allocations: 332.4 kB / 431.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004881/0.4448, allocations: 305.3 kB / 431.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.651e-05/0.4449, allocations: 30.69 kB / 431.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02062/0.4655, allocations: 9.215 MB / 440.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.4658, allocations: 92.08 kB / 440.9 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008965/0.4667, allocations: 277 kB / 441.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.4786, allocations: 4.113 MB / 445.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.4786, allocations: 0 / 445.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4786, allocations: 0 / 445.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.4786, allocations: 0 / 445.3 MB, free: 13.94 MB / 318.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.002392/0.481, allocations: 1.207 MB / 446.5 MB, free: 13.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.4811, allocations: 9.625 kB / 446.5 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.4812, allocations: 101.5 kB / 446.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004427/0.4817, allocations: 92.8 kB / 446.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.4818, allocations: 224.2 kB / 446.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.759e-05/0.4819, allocations: 21.81 kB / 446.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-05/0.4819, allocations: 25.25 kB / 446.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.4834, allocations: 1.262 MB / 448.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.4834, allocations: 5.312 kB / 448.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.983e-05/0.4835, allocations: 11.12 kB / 448.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/0.4835, allocations: 24.02 kB / 448.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002223/0.4857, allocations: 2.317 MB / 450.5 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.4877, allocations: 2.156 MB / 452.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.4891, allocations: 1.348 MB / 454 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.4902, allocations: 1.276 MB / 455.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0194/0.5097, allocations: 11.21 MB / 466.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/0.5097, allocations: 51.11 kB / 466.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=185): time 4.459e-06/0.5098, allocations: 3.984 kB / 466.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=185): time 0.004395/0.5142, allocations: 3.592 MB / 470.2 MB, free: 9.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.5142, allocations: 59.97 kB / 470.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.5143, allocations: 113.8 kB / 470.4 MB, free: 8.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.5144, allocations: 41.7 kB / 470.4 MB, free: 8.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.338e-05/0.5144, allocations: 86.98 kB / 470.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004361/0.5149, allocations: 0.5824 MB / 471.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.5151, allocations: 150.2 kB / 471.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.5152, allocations: 313 kB / 471.5 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.5163, allocations: 1.022 MB / 472.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.5175, allocations: 1.033 MB / 473.6 MB, free: 5.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002537/0.52, allocations: 2.237 MB / 475.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.52, allocations: 0 / 475.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002803/0.5228, allocations: 2.335 MB / 478.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.5229, allocations: 4 kB / 478.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.5229, allocations: 0 / 478.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.5229, allocations: 8 kB / 478.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.5235, allocations: 118.3 kB / 478.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.5235, allocations: 4 kB / 478.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004504/0.524, allocations: 82.89 kB / 478.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.5241, allocations: 23.98 kB / 478.4 MB, free: 0.9219 MB / 334.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.0002066/0.5243, allocations: 164.7 kB / 478.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.5244, allocations: 51.25 kB / 478.6 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/0.5275, allocations: 2.648 MB / 481.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/0.5276, allocations: 34.45 kB / 481.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5276, allocations: 3.938 kB / 481.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.5276, allocations: 8.672 kB / 481.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.5288, allocations: 1.16 MB / 482.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5288, allocations: 0 / 482.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006061/0.5294, allocations: 137.9 kB / 482.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.5294, allocations: 7.984 kB / 482.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/0.5294, allocations: 17.19 kB / 482.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.5295, allocations: 8 kB / 482.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.5295, allocations: 0 / 482.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.5321, allocations: 2.338 MB / 484.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.5324, allocations: 219.7 kB / 485.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.432e-05/0.5324, allocations: 16 kB / 485.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.5328, allocations: 23.98 kB / 485.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.5329, allocations: 52.86 kB / 485.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.772e-05/0.5329, allocations: 27 kB / 485.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.936e-05/0.533, allocations: 84.2 kB / 485.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.533, allocations: 0 / 485.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002916/0.5359, allocations: 0.8785 MB / 486.2 MB, free: 9.008 MB / 350.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.007446/0.5434, allocations: 4.105 MB / 490.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.5471, allocations: 2.391 MB / 492.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.5471, allocations: 0 / 492.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.5484, allocations: 1.259 MB / 494 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/0.5505, allocations: 356 kB / 494.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.5548, allocations: 2.035 MB / 496.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005062/0.5553, allocations: 0.8866 MB / 497.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006297/0.556, allocations: 257.9 kB / 497.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.5563, allocations: 191.3 kB / 497.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.5563, allocations: 0 / 497.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09335/0.6497, allocations: 43.3 MB / 0.5283 GB, free: 2.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.9, allocations: 11.92 kB / 0.5283 GB, free: 2.441 MB / 398.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)