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.004852/0.004852, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.001288/0.001288, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.566/1.566, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.09543/0.09543, allocations: 9.096 MB / 279 MB, free: 12.07 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.002158/0.002158, allocations: 63.91 kB / 387 MB, free: 8.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2613, allocations: 48.17 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation): time 0.01914/0.2805, allocations: 18.23 MB / 453.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004975/0.2855, allocations: 4.9 MB / 458.3 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.606e-05/0.2856, allocations: 0 / 458.3 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009455/0.2866, allocations: 320.2 kB / 458.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002018/0.2886, allocations: 0.6947 MB / 459.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003981/0.2926, allocations: 1.809 MB / 461.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002467/0.2929, allocations: 175.7 kB / 461.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.343e-05/0.2929, allocations: 8.156 kB / 461.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.2931, allocations: 96.45 kB / 461.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.896e-05/0.2932, allocations: 51.5 kB / 461.4 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.2932, allocations: 3.469 kB / 461.4 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005053/0.2983, allocations: 3.42 MB / 464.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.48e-05/0.2983, allocations: 15.27 kB / 464.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.79e-05/0.2984, allocations: 57.11 kB / 464.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002361/0.3008, allocations: 1.458 MB / 466.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.3008, allocations: 4.875 kB / 466.3 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3008, allocations: 3.938 kB / 466.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3008, allocations: 4 kB / 466.4 MB, free: 0.7539 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.0009451/0.3018, allocations: 0.6182 MB / 467 MB, free: 208 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3018, allocations: 9.5 kB / 467 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.3019, allocations: 47.02 kB / 467 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.3019, allocations: 17.47 kB / 467 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.3021, allocations: 173.9 kB / 467.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.3021, allocations: 6.875 kB / 467.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.3021, allocations: 4.219 kB / 467.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.3025, allocations: 200.6 kB / 467.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3025, allocations: 1.406 kB / 467.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.3025, allocations: 0 / 467.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.3025, allocations: 6.438 kB / 467.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.3029, allocations: 280.2 kB / 467.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006888/0.3036, allocations: 0.5045 MB / 468.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.304, allocations: 249.3 kB / 468.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.3043, allocations: 193.3 kB / 468.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007113/0.3114, allocations: 7.226 MB / 475.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.3115, allocations: 42.5 kB / 475.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.483e-06/0.3115, allocations: 0 / 475.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.0009039/0.3124, allocations: 0.57 MB / 476.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.3124, allocations: 55.34 kB / 476.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.489e-05/0.3125, allocations: 109.8 kB / 476.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.3125, allocations: 25.7 kB / 476.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.611e-05/0.3126, allocations: 88.8 kB / 476.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.067e-05/0.3127, allocations: 114.9 kB / 476.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.662e-05/0.3128, allocations: 33.7 kB / 476.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3129, allocations: 334.8 kB / 477.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.3131, allocations: 139.9 kB / 477.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.3134, allocations: 147.8 kB / 477.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004592/0.3138, allocations: 321.9 kB / 477.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3138, allocations: 0 / 477.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005465/0.3144, allocations: 378.5 kB / 478.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3144, allocations: 7.938 kB / 478.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3144, allocations: 4 kB / 478.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3145, allocations: 0 / 478.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.3146, allocations: 27.97 kB / 478.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.3146, allocations: 0 / 478.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.494e-05/0.3147, allocations: 19.83 kB / 478.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.3147, allocations: 15.91 kB / 478.3 MB, free: 3.742 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 0.0001028/0.3148, allocations: 117.8 kB / 478.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.188e-05/0.3149, allocations: 19.84 kB / 478.4 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006594/0.3155, allocations: 424.2 kB / 478.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.3156, allocations: 11.98 kB / 478.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3156, allocations: 0 / 478.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3156, allocations: 0 / 478.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.3159, allocations: 286.6 kB / 479.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3159, allocations: 0 / 479.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.316, allocations: 31.97 kB / 479.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.316, allocations: 3.938 kB / 479.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.3161, allocations: 4 kB / 479.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.744e-06/0.3161, allocations: 3.938 kB / 479.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3161, allocations: 7.938 kB / 479.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006424/0.3167, allocations: 476.2 kB / 479.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.276e-05/0.3168, allocations: 112.9 kB / 479.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.3169, allocations: 0 / 479.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.317, allocations: 12.23 kB / 479.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.317, allocations: 11.98 kB / 479.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.317, allocations: 4 kB / 479.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.417e-05/0.3171, allocations: 83.28 kB / 479.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3171, allocations: 4 kB / 479.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001178/0.3183, allocations: 430.6 kB / 480.3 MB, free: 1.641 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.002611/0.3209, allocations: 1.547 MB / 481.8 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006073/0.3215, allocations: 367.7 kB / 482.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3215, allocations: 0 / 482.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000279/0.3218, allocations: 207.9 kB / 482.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005353/0.3224, allocations: 63.84 kB / 482.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.3234, allocations: 0.5719 MB / 483 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.3238, allocations: 0.7126 MB / 483.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.517e-05/0.3239, allocations: 33.11 kB / 483.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.524e-05/0.324, allocations: 35.42 kB / 483.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.324, allocations: 4 kB / 483.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.3653, allocations: 13.46 MB / 497.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.365/8.731, allocations: 8.562 kB / 497.3 MB, free: 0.5703 MB / 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)