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.001569/0.001569, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.961/1.961, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.123/0.123, allocations: 9.095 MB / 278.9 MB, free: 12.16 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.001446/0.001446, allocations: 71.88 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.1013, allocations: 48.15 MB / 386.3 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation): time 0.02052/0.1219, allocations: 18.23 MB / 404.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004319/0.1263, allocations: 4.902 MB / 409.4 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.046e-05/0.1264, allocations: 0 / 409.4 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009498/0.1274, allocations: 318.4 kB / 409.7 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001722/0.1291, allocations: 0.7008 MB / 410.4 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004282/0.1334, allocations: 1.805 MB / 412.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002633/0.1337, allocations: 179.1 kB / 412.4 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.661e-05/0.1338, allocations: 9.125 kB / 412.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.134, allocations: 91.52 kB / 412.5 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.937e-05/0.1341, allocations: 51.72 kB / 412.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.1341, allocations: 4 kB / 412.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0055/0.1396, allocations: 3.263 MB / 415.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.89e-05/0.1397, allocations: 15.92 kB / 415.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.526e-05/0.1398, allocations: 51.69 kB / 415.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002674/0.1425, allocations: 1.458 MB / 417.4 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1425, allocations: 0 / 417.4 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1425, allocations: 3.938 kB / 417.4 MB, free: 9.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1425, allocations: 3.938 kB / 417.4 MB, free: 9.961 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.001134/0.1437, allocations: 0.6003 MB / 418 MB, free: 9.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1437, allocations: 8.031 kB / 418 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.997e-05/0.1438, allocations: 46.55 kB / 418 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.993e-05/0.1438, allocations: 19.75 kB / 418 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.144, allocations: 178.8 kB / 418.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.144, allocations: 4 kB / 418.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.23e-05/0.144, allocations: 4 kB / 418.2 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.1444, allocations: 205.1 kB / 418.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1444, allocations: 0 / 418.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.1444, allocations: 0 / 418.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.1444, allocations: 8 kB / 418.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.1448, allocations: 279.7 kB / 418.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006997/0.1455, allocations: 0.5104 MB / 419.2 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003361/0.1459, allocations: 254.5 kB / 419.5 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.1461, allocations: 189 kB / 419.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1747/0.3208, allocations: 7.218 MB / 426.9 MB, free: 47.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.3209, allocations: 41.92 kB / 426.9 MB, free: 47.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 3.317e-06/0.3209, allocations: 0 / 426.9 MB, free: 47.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.0008021/0.3217, allocations: 0.5614 MB / 427.5 MB, free: 47.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.3217, allocations: 53.81 kB / 427.5 MB, free: 47.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.102e-05/0.3218, allocations: 100.4 kB / 427.6 MB, free: 47.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.3218, allocations: 32.39 kB / 427.6 MB, free: 47.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.57e-05/0.3218, allocations: 83.16 kB / 427.7 MB, free: 47.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.3219, allocations: 117.1 kB / 427.8 MB, free: 46.97 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/0.322, allocations: 39.77 kB / 427.9 MB, free: 46.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.418e-05/0.322, allocations: 325 kB / 428.2 MB, free: 46.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.3222, allocations: 145.1 kB / 428.3 MB, free: 46.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.3224, allocations: 146.7 kB / 428.5 MB, free: 46.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004147/0.3228, allocations: 326.7 kB / 428.8 MB, free: 46.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3228, allocations: 0.7188 kB / 428.8 MB, free: 46.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004806/0.3233, allocations: 374.1 kB / 429.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3234, allocations: 5.375 kB / 429.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3234, allocations: 1.125 kB / 429.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.3234, allocations: 0 / 429.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.3235, allocations: 26.94 kB / 429.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.3235, allocations: 2.641 kB / 429.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.392e-05/0.3236, allocations: 26.12 kB / 429.2 MB, free: 46.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.3236, allocations: 10.06 kB / 429.2 MB, free: 46.4 MB / 318.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 6.364e-05/0.3237, allocations: 126.3 kB / 429.4 MB, free: 46.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.808e-05/0.3238, allocations: 17.59 kB / 429.4 MB, free: 46.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005732/0.3243, allocations: 415.2 kB / 429.8 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.3244, allocations: 4.844 kB / 429.8 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3244, allocations: 2.344 kB / 429.8 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3244, allocations: 0.6562 kB / 429.8 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.3246, allocations: 296.7 kB / 430.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.3246, allocations: 1.844 kB / 430.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.3247, allocations: 34.33 kB / 430.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3247, allocations: 0 / 430.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3247, allocations: 1.688 kB / 430.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3248, allocations: 4.922 kB / 430.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3248, allocations: 0 / 430.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004885/0.3252, allocations: 478.2 kB / 430.6 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.3253, allocations: 105.9 kB / 430.7 MB, free: 45.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3253, allocations: 6.016 kB / 430.7 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.52e-05/0.3254, allocations: 9.734 kB / 430.7 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.3255, allocations: 16.38 kB / 430.7 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/0.3255, allocations: 3.953 kB / 430.7 MB, free: 45.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.886e-05/0.3255, allocations: 85.84 kB / 430.8 MB, free: 45.35 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3255, allocations: 0 / 430.8 MB, free: 45.35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009806/0.3265, allocations: 423.5 kB / 431.2 MB, free: 45.32 MB / 318.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.002134/0.3287, allocations: 1.548 MB / 432.8 MB, free: 44.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005471/0.3292, allocations: 374.5 kB / 433.1 MB, free: 44.26 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3292, allocations: 9.953 kB / 433.2 MB, free: 44.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002349/0.3295, allocations: 203.1 kB / 433.3 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.3301, allocations: 73.16 kB / 433.4 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.3311, allocations: 0.5435 MB / 434 MB, free: 43.83 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.3313, allocations: 0.7102 MB / 434.7 MB, free: 43.13 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.598e-05/0.3314, allocations: 24.3 kB / 434.7 MB, free: 43.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.026e-05/0.3314, allocations: 40.03 kB / 434.7 MB, free: 43.1 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3315, allocations: 0 / 434.7 MB, free: 43.1 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04179/0.3732, allocations: 13.43 MB / 448.2 MB, free: 35.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/8.125, allocations: 7.281 kB / 448.2 MB, free: 35.84 MB / 318.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)