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.001596/0.001596, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002037/0.002037, allocations: 189.5 kB / 16.25 MB, free: 6.625 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.489/1.489, allocations: 205.1 MB / 222.1 MB, free: 4.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04587/0.04587, allocations: 9.084 MB / 278.5 MB, free: 12.34 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.001361/0.001361, allocations: 63.91 kB / 337.6 MB, free: 25.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08385/0.08523, allocations: 48.15 MB / 385.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.02137/0.1066, allocations: 19.75 MB / 405.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.1226, allocations: 17.09 MB / 422.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005094/0.1231, allocations: 4 kB / 422.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001641/0.1249, allocations: 0.5294 MB / 423.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1907/0.3156, allocations: 4.797 MB / 428 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003593/0.3193, allocations: 0.8865 MB / 428.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001317/0.3206, allocations: 0.7894 MB / 429.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.3208, allocations: 40.06 kB / 429.7 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005014/0.3213, allocations: 345.7 kB / 430 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.3217, allocations: 306.4 kB / 430.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.598e-05/0.3218, allocations: 29.28 kB / 430.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01732/0.3391, allocations: 9.382 MB / 439.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.3393, allocations: 92.28 kB / 439.8 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005923/0.3399, allocations: 272.5 kB / 440.1 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.35, allocations: 4.131 MB / 444.2 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3501, allocations: 0 / 444.2 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3501, allocations: 0 / 444.2 MB, free: 14.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.3501, allocations: 0 / 444.2 MB, free: 14.65 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.002708/0.3528, allocations: 1.196 MB / 445.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3529, allocations: 8.781 kB / 445.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.451e-05/0.353, allocations: 105.2 kB / 445.5 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004866/0.3535, allocations: 92.91 kB / 445.6 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.3536, allocations: 222.9 kB / 445.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.3537, allocations: 20.06 kB / 445.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.3537, allocations: 29.53 kB / 445.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.3553, allocations: 1.257 MB / 447.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3553, allocations: 3.938 kB / 447.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.3553, allocations: 12.25 kB / 447.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.7e-05/0.3554, allocations: 27.08 kB / 447.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002112/0.3575, allocations: 2.317 MB / 449.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.3595, allocations: 2.156 MB / 451.6 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.3608, allocations: 1.352 MB / 453 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009917/0.3618, allocations: 1.277 MB / 454.3 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02027/0.3821, allocations: 11.22 MB / 465.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.674e-05/0.3822, allocations: 39.12 kB / 465.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=185): time 3.166e-06/0.3822, allocations: 0 / 465.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=185): time 0.004641/0.3868, allocations: 3.6 MB / 469.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.3869, allocations: 55.97 kB / 469.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.387, allocations: 117.8 kB / 469.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.3871, allocations: 37.7 kB / 469.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.937e-05/0.3871, allocations: 86.98 kB / 469.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004521/0.3876, allocations: 0.576 MB / 470 MB, free: 9.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/0.3878, allocations: 154.2 kB / 470.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.388, allocations: 314 kB / 470.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3891, allocations: 1.018 MB / 471.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.3903, allocations: 1.042 MB / 472.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002438/0.3927, allocations: 2.233 MB / 474.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3927, allocations: 0 / 474.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002828/0.3956, allocations: 2.329 MB / 477.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3956, allocations: 12 kB / 477.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3956, allocations: 0 / 477.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.3957, allocations: 0 / 477.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006432/0.3963, allocations: 123.8 kB / 477.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.3963, allocations: 4 kB / 477.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000412/0.3968, allocations: 90.77 kB / 477.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-05/0.3968, allocations: 25.17 kB / 477.3 MB, free: 2.426 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.0002394/0.3971, allocations: 173.7 kB / 477.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.3972, allocations: 51.25 kB / 477.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.4004, allocations: 2.644 MB / 480.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.619e-05/0.4004, allocations: 23.89 kB / 480.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.4005, allocations: 4 kB / 480.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.4005, allocations: 7.922 kB / 480.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.4017, allocations: 1.156 MB / 481.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.4017, allocations: 0 / 481.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.4024, allocations: 143.8 kB / 481.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.4025, allocations: 4 kB / 481.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.398e-05/0.4025, allocations: 19.94 kB / 481.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4025, allocations: 4 kB / 481.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4025, allocations: 0 / 481.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002756/0.4053, allocations: 2.344 MB / 483.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/0.4056, allocations: 215.8 kB / 484.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.4057, allocations: 16 kB / 484.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003779/0.4061, allocations: 23.98 kB / 484.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.4062, allocations: 48.86 kB / 484.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.4063, allocations: 25.08 kB / 484.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.539e-05/0.4063, allocations: 92.2 kB / 484.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.382e-06/0.4063, allocations: 0 / 484.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002954/0.4093, allocations: 0.8822 MB / 485.2 MB, free: 10.5 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.007731/0.417, allocations: 4.094 MB / 489.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00387/0.4209, allocations: 2.394 MB / 491.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.421, allocations: 3.938 kB / 491.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.4224, allocations: 1.256 MB / 492.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.4242, allocations: 355.3 kB / 493.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004537/0.4287, allocations: 2.336 MB / 495.6 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.4292, allocations: 0.8905 MB / 496.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006169/0.4298, allocations: 250.4 kB / 496.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003143/0.4301, allocations: 191.3 kB / 496.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4301, allocations: 0 / 496.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07756/0.5077, allocations: 43.11 MB / 0.5274 GB, free: 3.852 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001849/0.5079, allocations: 221.9 kB / 0.5276 GB, free: 3.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.606/4.114, allocations: 11.25 kB / 0.5276 GB, free: 3.59 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)