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: translateModel(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation") translateModel(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.00107/0.001069, allocations: 195.9 kB / 16.14 MB, free: 6.738 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.355/1.355, allocations: 205.1 MB / 222 MB, free: 4.988 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.08436/0.08436, allocations: 9.082 MB / 278.4 MB, free: 12.64 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.001723/0.001723, allocations: 64.44 kB / 337.3 MB, free: 25.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.09091, allocations: 48.18 MB / 385.5 MB, free: 9.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation): time 0.02093/0.1119, allocations: 18.47 MB / 404 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004576/0.1165, allocations: 4.946 MB / 408.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.927e-05/0.1166, allocations: 0 / 408.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008212/0.1174, allocations: 286.9 kB / 409.2 MB, free: 1.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001492/0.119, allocations: 0.6232 MB / 409.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00345/0.1225, allocations: 1.494 MB / 411.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002464/0.1227, allocations: 167.1 kB / 411.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.366e-05/0.1228, allocations: 17.11 kB / 411.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.123, allocations: 87.47 kB / 411.6 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.086e-05/0.1231, allocations: 55.7 kB / 411.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.1231, allocations: 4 kB / 411.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004387/0.1275, allocations: 3.102 MB / 414.7 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.645e-05/0.1275, allocations: 15.92 kB / 414.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.667e-05/0.1276, allocations: 55.67 kB / 414.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002213/0.1298, allocations: 1.411 MB / 416.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1299, allocations: 0 / 416.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.1299, allocations: 0 / 416.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.1299, allocations: 0 / 416.2 MB, free: 10.88 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.0008313/0.1307, allocations: 0.612 MB / 416.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.1308, allocations: 12.03 kB / 416.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.973e-05/0.1308, allocations: 11.81 kB / 416.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.1309, allocations: 178.9 kB / 417 MB, free: 9.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.1309, allocations: 7.938 kB / 417 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.131, allocations: 8 kB / 417 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.1313, allocations: 197.5 kB / 417.2 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1313, allocations: 0 / 417.2 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.1313, allocations: 7.938 kB / 417.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.1313, allocations: 4 kB / 417.2 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003606/0.1317, allocations: 271.8 kB / 417.5 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006483/0.1323, allocations: 0.5181 MB / 418 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003198/0.1327, allocations: 254.3 kB / 418.3 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.1329, allocations: 196.8 kB / 418.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1654/0.2984, allocations: 7.216 MB / 425.7 MB, free: 48.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.2984, allocations: 35.75 kB / 425.7 MB, free: 48.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.054e-06/0.2984, allocations: 0 / 425.7 MB, free: 48.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.0008569/0.2993, allocations: 0.5662 MB / 426.3 MB, free: 48.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.2993, allocations: 52.72 kB / 426.3 MB, free: 48.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.985e-05/0.2994, allocations: 104.3 kB / 426.4 MB, free: 48.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.2994, allocations: 28.83 kB / 426.5 MB, free: 48.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.605e-05/0.2995, allocations: 83.48 kB / 426.6 MB, free: 47.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.798e-05/0.2996, allocations: 116 kB / 426.7 MB, free: 47.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.2996, allocations: 37.56 kB / 426.7 MB, free: 47.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.504e-05/0.2997, allocations: 328.5 kB / 427 MB, free: 47.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.2999, allocations: 143.4 kB / 427.2 MB, free: 47.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.3001, allocations: 149.9 kB / 427.3 MB, free: 47.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005086/0.3006, allocations: 329 kB / 427.6 MB, free: 47.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3007, allocations: 0 / 427.6 MB, free: 47.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005839/0.3012, allocations: 366.2 kB / 428 MB, free: 47.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.3013, allocations: 14.06 kB / 428 MB, free: 47.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3013, allocations: 2.016 kB / 428 MB, free: 47.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.3013, allocations: 3.891 kB / 428 MB, free: 47.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.3015, allocations: 29.72 kB / 428 MB, free: 47.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3015, allocations: 1.562 kB / 428 MB, free: 47.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.674e-05/0.3016, allocations: 28.33 kB / 428.1 MB, free: 47.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.3016, allocations: 3.781 kB / 428.1 MB, free: 47.35 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 9.227e-05/0.3017, allocations: 128.3 kB / 428.2 MB, free: 47.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.3018, allocations: 17.86 kB / 428.2 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008119/0.3026, allocations: 415.9 kB / 428.6 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/0.3026, allocations: 4.859 kB / 428.6 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3026, allocations: 5.562 kB / 428.6 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.3026, allocations: 0.7969 kB / 428.6 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003341/0.303, allocations: 298.6 kB / 428.9 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.303, allocations: 0 / 428.9 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.3031, allocations: 25.41 kB / 428.9 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3031, allocations: 1.734 kB / 428.9 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.3031, allocations: 1.953 kB / 428.9 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3031, allocations: 0.9062 kB / 428.9 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3032, allocations: 3.281 kB / 429 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006532/0.3038, allocations: 473.5 kB / 429.4 MB, free: 46.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.208e-05/0.3039, allocations: 107.2 kB / 429.5 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.3039, allocations: 5.797 kB / 429.5 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.49e-05/0.304, allocations: 8.594 kB / 429.5 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-05/0.3041, allocations: 13.41 kB / 429.5 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.3041, allocations: 7.984 kB / 429.6 MB, free: 46.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.554e-05/0.3042, allocations: 85.86 kB / 429.6 MB, free: 46.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3042, allocations: 0 / 429.6 MB, free: 46.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001604/0.3058, allocations: 420.6 kB / 430 MB, free: 46.27 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.001446/0.3072, allocations: 0.6376 MB / 430.7 MB, free: 46.1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005575/0.3078, allocations: 373.7 kB / 431.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3078, allocations: 0 / 431.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002638/0.3081, allocations: 207.6 kB / 431.3 MB, free: 45.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.3087, allocations: 76.67 kB / 431.3 MB, free: 45.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006578/0.3093, allocations: 401.5 kB / 431.7 MB, free: 45.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.3095, allocations: 0.7143 MB / 432.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.165e-05/0.3096, allocations: 19.84 kB / 432.5 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.563e-05/0.3097, allocations: 16.39 kB / 432.5 MB, free: 44.86 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3097, allocations: 0 / 432.5 MB, free: 44.86 MB / 318.1 MB Notification: Performance of Templates: time 0.01713/0.3268, allocations: 11.49 MB / 444 MB, free: 40 MB / 318.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe 2>&1)