Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.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.ConvergenceTest.Ancillary_Saturation,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_Saturation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_Saturation",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.01054/0.01054, allocations: 99.69 kB / 15.73 MB, free: 6.445 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.001969/0.001969, allocations: 191.1 kB / 16.67 MB, free: 6.348 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.52/1.52, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.07828/0.07828, allocations: 9.106 MB / 279 MB, free: 12.09 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.001426/0.001426, allocations: 62.25 kB / 387 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3248, allocations: 48.16 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation): time 0.02218/0.347, allocations: 18.23 MB / 453.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00531/0.3524, allocations: 4.904 MB / 458.3 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.786e-05/0.3525, allocations: 3.938 kB / 458.3 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.3537, allocations: 353.8 kB / 458.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002224/0.356, allocations: 0.7208 MB / 459.3 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005937/0.3619, allocations: 1.892 MB / 461.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.3623, allocations: 172.1 kB / 461.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.248e-05/0.3623, allocations: 10.66 kB / 461.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.3626, allocations: 101.2 kB / 461.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.3627, allocations: 56.39 kB / 461.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.3628, allocations: 3.344 kB / 461.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00639/0.3692, allocations: 3.418 MB / 465 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.057e-05/0.3692, allocations: 16.14 kB / 465 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.3693, allocations: 54.36 kB / 465 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003427/0.3728, allocations: 1.462 MB / 466.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.3728, allocations: 0.9375 kB / 466.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3728, allocations: 3.938 kB / 466.5 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.3728, allocations: 0 / 466.5 MB, free: 0.6562 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.001355/0.3742, allocations: 0.6226 MB / 467.1 MB, free: 104 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.514e-05/0.3743, allocations: 12.98 kB / 467.1 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.28e-05/0.3743, allocations: 39.12 kB / 467.2 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.071e-05/0.3744, allocations: 20.3 kB / 467.2 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.3747, allocations: 183.5 kB / 467.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.3747, allocations: 2.219 kB / 467.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.3747, allocations: 8.625 kB / 467.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.3751, allocations: 189.2 kB / 467.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3752, allocations: 0 / 467.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3752, allocations: 9.125 kB / 467.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.3752, allocations: 5.391 kB / 467.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00052/0.3757, allocations: 276.3 kB / 467.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007851/0.3765, allocations: 0.5085 MB / 468.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000385/0.3769, allocations: 254.1 kB / 468.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.3772, allocations: 192.7 kB / 468.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007516/0.3847, allocations: 7.232 MB / 476 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/0.3848, allocations: 34.5 kB / 476.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.265e-06/0.3848, allocations: 0 / 476.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.0009988/0.3858, allocations: 0.5622 MB / 476.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.3859, allocations: 63.34 kB / 476.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.386, allocations: 105.8 kB / 476.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.386, allocations: 29.7 kB / 476.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.231e-05/0.3861, allocations: 80.8 kB / 476.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.3862, allocations: 126.8 kB / 477 MB, free: 5.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.039e-05/0.3863, allocations: 41.7 kB / 477.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3865, allocations: 318.8 kB / 477.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.3867, allocations: 147.9 kB / 477.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.3869, allocations: 159.9 kB / 477.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004371/0.3874, allocations: 317.9 kB / 478 MB, free: 4.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3874, allocations: 0 / 478 MB, free: 4.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005409/0.3879, allocations: 374.5 kB / 478.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.388, allocations: 7.938 kB / 478.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.388, allocations: 4 kB / 478.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.388, allocations: 0 / 478.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.3881, allocations: 23.98 kB / 478.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3881, allocations: 7.984 kB / 478.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3883, allocations: 23.81 kB / 478.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.3883, allocations: 4 kB / 478.4 MB, free: 3.602 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9.728e-05/0.3884, allocations: 113.8 kB / 478.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.3884, allocations: 19.84 kB / 478.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006207/0.3891, allocations: 424.2 kB / 479 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3891, allocations: 3.984 kB / 479 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3891, allocations: 0 / 479 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3891, allocations: 0 / 479 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003138/0.3894, allocations: 290.6 kB / 479.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3894, allocations: 256 / 479.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.3896, allocations: 23.98 kB / 479.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.3896, allocations: 7.938 kB / 479.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.3896, allocations: 4 kB / 479.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3896, allocations: 4 kB / 479.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3896, allocations: 7.922 kB / 479.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.3902, allocations: 484.1 kB / 479.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.128e-05/0.3903, allocations: 108.9 kB / 479.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.3903, allocations: 7.984 kB / 479.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.67e-05/0.3904, allocations: 4 kB / 479.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.3905, allocations: 19.92 kB / 479.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.3905, allocations: 4 kB / 479.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.714e-05/0.3905, allocations: 83.27 kB / 480 MB, free: 1.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3906, allocations: 0 / 480 MB, free: 1.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001449/0.392, allocations: 426.6 kB / 480.4 MB, free: 1.508 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.002701/0.3947, allocations: 1.551 MB / 482 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005756/0.3953, allocations: 371.6 kB / 482.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3953, allocations: 0 / 482.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.3956, allocations: 207.9 kB / 482.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.3962, allocations: 63.92 kB / 482.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009622/0.3971, allocations: 0.5641 MB / 483.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.3974, allocations: 0.7204 MB / 483.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.371e-05/0.3975, allocations: 21.19 kB / 483.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.649e-05/0.3976, allocations: 35.42 kB / 483.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3976, allocations: 4 kB / 483.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0424/0.44, allocations: 13.47 MB / 497.4 MB, free: 448 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.574, allocations: 0.5 kB / 497.4 MB, free: 448 kB / 366.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation_res.csv --start-time 0 --stop-time 7 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0028 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_Saturation.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe 2>&1)