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.008324/0.008324, allocations: 102.2 kB / 15.73 MB, free: 5.992 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.001955/0.001955, allocations: 196 kB / 16.67 MB, free: 5.93 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.412/1.412, allocations: 205.1 MB / 222.5 MB, free: 4.383 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04631/0.04631, allocations: 9.1 MB / 279 MB, free: 11.95 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.001639/0.001639, allocations: 63.91 kB / 387 MB, free: 8.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.244, allocations: 48.15 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.02221/0.2662, allocations: 19.8 MB / 455 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.2833, allocations: 17.14 MB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004093/0.2837, allocations: 2.125 kB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.2852, allocations: 0.5782 MB / 472.7 MB, free: 10.06 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.01305/0.2983, allocations: 5.274 MB / 477.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002843/0.3011, allocations: 1.018 MB / 479 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.3022, allocations: 0.794 MB / 479.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.3024, allocations: 49.75 kB / 479.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004576/0.3028, allocations: 334.7 kB / 480.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003511/0.3032, allocations: 294.7 kB / 480.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.692e-05/0.3032, allocations: 36 kB / 480.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01643/0.3197, allocations: 9.431 MB / 489.9 MB, free: 9.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.3199, allocations: 91.53 kB / 490 MB, free: 9.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004457/0.3203, allocations: 278.5 kB / 490.3 MB, free: 9.578 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.3309, allocations: 4.107 MB / 494.4 MB, free: 5.461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3309, allocations: 0 / 494.4 MB, free: 5.461 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3309, allocations: 0 / 494.4 MB, free: 5.461 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.3309, allocations: 0 / 494.4 MB, free: 5.461 MB / 366.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.002572/0.3335, allocations: 1.193 MB / 495.6 MB, free: 4.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3336, allocations: 16.03 kB / 495.6 MB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.3337, allocations: 110.4 kB / 495.7 MB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004939/0.3342, allocations: 87.19 kB / 495.8 MB, free: 4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.3344, allocations: 230.3 kB / 496 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.625e-05/0.3344, allocations: 20.56 kB / 496 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.3345, allocations: 27.98 kB / 496 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3359, allocations: 1.251 MB / 497.3 MB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3359, allocations: 0 / 497.3 MB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.336, allocations: 15.94 kB / 497.3 MB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-05/0.336, allocations: 31.95 kB / 497.3 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002317/0.3383, allocations: 2.307 MB / 499.6 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.3408, allocations: 2.17 MB / 0.49 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.3426, allocations: 1.346 MB / 0.4914 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.344, allocations: 1.278 MB / 0.4926 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02198/0.366, allocations: 11.21 MB / 0.5036 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.366, allocations: 39.12 kB / 0.5036 GB, free: 14.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 3.496e-06/0.3661, allocations: 0 / 0.5036 GB, free: 14.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.004737/0.3708, allocations: 3.599 MB / 0.5071 GB, free: 10.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.3709, allocations: 59.97 kB / 0.5072 GB, free: 10.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.371, allocations: 117.8 kB / 0.5073 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.626e-05/0.3711, allocations: 37.7 kB / 0.5073 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.3712, allocations: 83.08 kB / 0.5074 GB, free: 10.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005038/0.3717, allocations: 0.581 MB / 0.508 GB, free: 9.633 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/0.3719, allocations: 150.2 kB / 0.5081 GB, free: 9.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3721, allocations: 313.9 kB / 0.5084 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.3732, allocations: 1.014 MB / 0.5094 GB, free: 8.152 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.3744, allocations: 1.047 MB / 0.5104 GB, free: 7.105 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002846/0.3773, allocations: 2.225 MB / 0.5126 GB, free: 4.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3773, allocations: 4 kB / 0.5126 GB, free: 4.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002859/0.3802, allocations: 2.336 MB / 0.5149 GB, free: 2.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.3802, allocations: 8 kB / 0.5149 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.3802, allocations: 0 / 0.5149 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3802, allocations: 4 kB / 0.5149 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005954/0.3808, allocations: 111.9 kB / 0.515 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.3809, allocations: 4.297 kB / 0.515 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.3813, allocations: 86.91 kB / 0.5151 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.495e-05/0.3814, allocations: 23.97 kB / 0.5151 GB, free: 2.301 MB / 398.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.0003245/0.3817, allocations: 173.7 kB / 0.5153 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002419/0.3819, allocations: 59.23 kB / 0.5153 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0034/0.3853, allocations: 2.632 MB / 0.5179 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.269e-05/0.3854, allocations: 35.95 kB / 0.5179 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3854, allocations: 0 / 0.5179 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.3855, allocations: 11.91 kB / 0.5179 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.3867, allocations: 1.171 MB / 0.5191 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.433e-06/0.3867, allocations: 0 / 0.5191 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006251/0.3873, allocations: 135.8 kB / 0.5192 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/0.3874, allocations: 7.938 kB / 0.5192 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.86e-05/0.3874, allocations: 12 kB / 0.5192 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.3874, allocations: 4 kB / 0.5192 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3874, allocations: 3.984 kB / 0.5192 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002712/0.3901, allocations: 2.337 MB / 0.5215 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/0.3904, allocations: 219.7 kB / 0.5217 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/0.3905, allocations: 16 kB / 0.5217 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/0.3909, allocations: 19.98 kB / 0.5218 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.391, allocations: 52.92 kB / 0.5218 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.463e-05/0.391, allocations: 27.94 kB / 0.5218 GB, free: 11.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.877e-05/0.3911, allocations: 91.25 kB / 0.5219 GB, free: 11.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3911, allocations: 3.938 kB / 0.5219 GB, free: 11.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002203/0.3933, allocations: 0.8785 MB / 0.5228 GB, free: 10.31 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.007028/0.4004, allocations: 4.091 MB / 0.5268 GB, free: 6.188 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.4033, allocations: 2.357 MB / 0.5291 GB, free: 3.828 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4033, allocations: 0 / 0.5291 GB, free: 3.828 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.4047, allocations: 1.252 MB / 0.5303 GB, free: 2.582 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.4064, allocations: 360.4 kB / 0.5307 GB, free: 2.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/0.4099, allocations: 2.02 MB / 0.5326 GB, free: 172 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.4103, allocations: 0.8896 MB / 0.5335 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000547/0.4109, allocations: 250.6 kB / 0.5337 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003027/0.4112, allocations: 195.3 kB / 0.5339 GB, free: 14.81 MB / 430.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4112, allocations: 0 / 0.5339 GB, free: 14.81 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07789/0.4891, allocations: 43.86 MB / 0.5768 GB, free: 2.992 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.11, allocations: 7.422 kB / 0.5768 GB, free: 2.988 MB / 462.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)