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.004457/0.004457, allocations: 101.8 kB / 15.73 MB, free: 5.516 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.001262/0.001262, allocations: 196.9 kB / 16.68 MB, free: 5.445 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.411/1.411, allocations: 205.1 MB / 222.6 MB, free: 4.457 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05208/0.05208, allocations: 9.096 MB / 279 MB, free: 12.05 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.002081/0.002081, allocations: 75.89 kB / 387 MB, free: 8.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2472, allocations: 48.15 MB / 435.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.01993/0.2672, allocations: 19.78 MB / 455 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01843/0.2857, allocations: 17.14 MB / 472.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004238/0.2861, allocations: 5.906 kB / 472.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.2877, allocations: 0.5698 MB / 472.7 MB, free: 10.04 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.01385/0.3016, allocations: 5.285 MB / 478 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003045/0.3046, allocations: 1.006 MB / 479 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.3058, allocations: 0.8018 MB / 479.8 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3059, allocations: 45.75 kB / 479.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004791/0.3064, allocations: 326.8 kB / 480.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004232/0.3068, allocations: 306.6 kB / 480.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.565e-05/0.3069, allocations: 32 kB / 480.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01861/0.3255, allocations: 9.428 MB / 489.9 MB, free: 9.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.3257, allocations: 91.53 kB / 490 MB, free: 9.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004567/0.3261, allocations: 278.5 kB / 490.3 MB, free: 9.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.3367, allocations: 4.122 MB / 494.4 MB, free: 5.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3367, allocations: 0 / 494.4 MB, free: 5.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3367, allocations: 4 kB / 494.4 MB, free: 5.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.884e-06/0.3367, allocations: 0 / 494.4 MB, free: 5.41 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.002373/0.3391, allocations: 1.224 MB / 495.6 MB, free: 4.133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3391, allocations: 12.03 kB / 495.6 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.3393, allocations: 110.4 kB / 495.7 MB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004309/0.3397, allocations: 91.56 kB / 495.8 MB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/0.3399, allocations: 226.3 kB / 496 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.664e-05/0.34, allocations: 20.56 kB / 496.1 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.185e-05/0.34, allocations: 24 kB / 496.1 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.3417, allocations: 1.263 MB / 497.3 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.3417, allocations: 0 / 497.3 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.3417, allocations: 11.94 kB / 497.4 MB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/0.3418, allocations: 27.95 kB / 497.4 MB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.3445, allocations: 2.323 MB / 499.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002568/0.3471, allocations: 2.159 MB / 0.4901 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.3489, allocations: 1.353 MB / 0.4914 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.3503, allocations: 1.267 MB / 0.4927 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02269/0.373, allocations: 11.22 MB / 0.5036 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.3731, allocations: 43.06 kB / 0.5037 GB, free: 14.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 3.065e-06/0.3731, allocations: 0 / 0.5037 GB, free: 14.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.004995/0.3781, allocations: 3.6 MB / 0.5072 GB, free: 10.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.3781, allocations: 59.97 kB / 0.5072 GB, free: 10.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.3783, allocations: 113.8 kB / 0.5073 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/0.3783, allocations: 37.7 kB / 0.5074 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.3784, allocations: 87.08 kB / 0.5075 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005022/0.3789, allocations: 0.6077 MB / 0.508 GB, free: 9.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000232/0.3791, allocations: 150.2 kB / 0.5082 GB, free: 9.359 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.3793, allocations: 321.9 kB / 0.5085 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.3806, allocations: 1.014 MB / 0.5095 GB, free: 8.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.3819, allocations: 1.039 MB / 0.5105 GB, free: 6.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002755/0.3847, allocations: 2.229 MB / 0.5127 GB, free: 4.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3847, allocations: 0 / 0.5127 GB, free: 4.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003099/0.3878, allocations: 2.336 MB / 0.515 GB, free: 2.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.3879, allocations: 4 kB / 0.515 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3879, allocations: 0 / 0.515 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.3879, allocations: 4 kB / 0.515 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006302/0.3885, allocations: 123.8 kB / 0.5151 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.3886, allocations: 0 / 0.5151 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.389, allocations: 95.17 kB / 0.5152 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.193e-05/0.389, allocations: 23.98 kB / 0.5152 GB, free: 2.168 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.0002418/0.3893, allocations: 165.7 kB / 0.5154 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.3895, allocations: 63.52 kB / 0.5154 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003611/0.3931, allocations: 2.636 MB / 0.518 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.312e-05/0.3931, allocations: 27.88 kB / 0.518 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3931, allocations: 0 / 0.518 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.3932, allocations: 7.922 kB / 0.518 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.3945, allocations: 1.171 MB / 0.5192 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3945, allocations: 0 / 0.5192 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006412/0.3952, allocations: 135.8 kB / 0.5193 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.3952, allocations: 11.94 kB / 0.5193 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.3952, allocations: 19.98 kB / 0.5193 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/0.3953, allocations: 4 kB / 0.5193 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3953, allocations: 0 / 0.5193 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/0.3983, allocations: 2.345 MB / 0.5216 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.3986, allocations: 224.1 kB / 0.5218 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.943e-05/0.3987, allocations: 19.94 kB / 0.5219 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.3991, allocations: 20 kB / 0.5219 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.3992, allocations: 48.92 kB / 0.5219 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-05/0.3993, allocations: 31.92 kB / 0.522 GB, free: 11.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.452e-05/0.3993, allocations: 79.28 kB / 0.522 GB, free: 11.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3993, allocations: 0 / 0.522 GB, free: 11.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0024/0.4017, allocations: 0.8999 MB / 0.5229 GB, free: 10.16 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.007468/0.4092, allocations: 4.113 MB / 0.5269 GB, free: 6.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003024/0.4123, allocations: 2.357 MB / 0.5292 GB, free: 3.652 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.4123, allocations: 0 / 0.5292 GB, free: 3.652 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.4137, allocations: 1.248 MB / 0.5304 GB, free: 2.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.4156, allocations: 359.5 kB / 0.5308 GB, free: 2.059 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.4193, allocations: 2.052 MB / 0.5328 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005573/0.4199, allocations: 0.8896 MB / 0.5337 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000588/0.4205, allocations: 246.7 kB / 0.5339 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.4208, allocations: 187.3 kB / 0.5341 GB, free: 14.62 MB / 430.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4208, allocations: 0 / 0.5341 GB, free: 14.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08702/0.5079, allocations: 43.37 MB / 0.5764 GB, free: 3.289 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.3, allocations: 3.984 kB / 0.5764 GB, free: 3.285 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)