Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.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.Parameter.State_ph_parameter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter") translateModel(HelmholtzMedia.Examples.Parameter.State_ph_parameter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007137/0.007137, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001727/0.001727, allocations: 195.6 kB / 16.68 MB, free: 5.93 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.389/1.389, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04552/0.04552, allocations: 9.096 MB / 279 MB, free: 12.08 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.001401/0.001401, allocations: 72.47 kB / 387.4 MB, free: 8.027 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2279, allocations: 48.16 MB / 435.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ph_parameter): time 0.0162/0.2442, allocations: 16.84 MB / 452.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009179/0.2534, allocations: 9.749 MB / 462.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.2535, allocations: 0 / 462.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006343/0.2541, allocations: 256.5 kB / 462.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.817e-05/0.2542, allocations: 21.31 kB / 462.5 MB, free: 3.004 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01255/0.2668, allocations: 5.079 MB / 467.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.947e-05/0.2669, allocations: 51.02 kB / 467.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.373e-05/0.2669, allocations: 5.844 kB / 467.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.979e-05/0.267, allocations: 29.45 kB / 467.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.345e-05/0.2671, allocations: 10.03 kB / 467.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.526e-06/0.2671, allocations: 1.281 kB / 467.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01285/0.28, allocations: 7.852 MB / 475.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.785e-05/0.28, allocations: 0 / 475.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.737e-05/0.2801, allocations: 15.94 kB / 475.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007467/0.2876, allocations: 3.294 MB / 478.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2876, allocations: 0 / 478.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2876, allocations: 0 / 478.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.2876, allocations: 0 / 478.8 MB, free: 5.418 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.001274/0.2889, allocations: 0.7018 MB / 479.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2889, allocations: 12.03 kB / 479.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.697e-05/0.289, allocations: 0 / 479.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.2891, allocations: 170.9 kB / 479.7 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.2891, allocations: 4 kB / 479.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.2891, allocations: 4 kB / 479.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.853e-05/0.2892, allocations: 45.66 kB / 479.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.2892, allocations: 0 / 479.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.223e-06/0.2892, allocations: 0 / 479.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2893, allocations: 4 kB / 479.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.287e-05/0.2893, allocations: 11.94 kB / 479.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.2894, allocations: 165.6 kB / 479.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.337e-05/0.2895, allocations: 38.56 kB / 479.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.435e-05/0.2895, allocations: 20.83 kB / 480 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02575/0.3153, allocations: 14 MB / 494 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.3154, allocations: 30.56 kB / 494 MB, free: 3.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 4.218e-06/0.3154, allocations: 0 / 494 MB, free: 3.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002209/0.3156, allocations: 73.62 kB / 494.1 MB, free: 3.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.3157, allocations: 59.42 kB / 494.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.393e-05/0.3157, allocations: 97.86 kB / 494.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.3158, allocations: 25.7 kB / 494.2 MB, free: 3.383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.943e-05/0.3158, allocations: 80.14 kB / 494.3 MB, free: 3.301 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.099e-05/0.3159, allocations: 23.66 kB / 494.3 MB, free: 3.277 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.644e-05/0.3159, allocations: 13.7 kB / 494.4 MB, free: 3.258 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.316, allocations: 322.8 kB / 494.7 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.998e-05/0.316, allocations: 8 kB / 494.7 MB, free: 2.926 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.112e-05/0.3161, allocations: 20.11 kB / 494.7 MB, free: 2.906 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.623e-05/0.3161, allocations: 32.78 kB / 494.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.3161, allocations: 0 / 494.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.586e-05/0.3162, allocations: 61.69 kB / 494.8 MB, free: 2.805 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3163, allocations: 9.078 kB / 494.8 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3163, allocations: 7.938 kB / 494.8 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.3163, allocations: 0 / 494.8 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.3163, allocations: 0 / 494.8 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.3163, allocations: 0 / 494.8 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.453e-05/0.3163, allocations: 7.844 kB / 494.8 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.3164, allocations: 4.062 kB / 494.8 MB, free: 2.777 MB / 366.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: 1 (inletState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 8.222e-05/0.3165, allocations: 113.8 kB / 494.9 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.3165, allocations: 0 / 494.9 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001526/0.3166, allocations: 174.8 kB / 495.1 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.357e-05/0.3167, allocations: 184.3 kB / 495.3 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.153e-05/0.3168, allocations: 180.2 kB / 495.5 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.169e-05/0.3168, allocations: 184.2 kB / 495.6 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.3171, allocations: 413.2 kB / 496 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.324e-05/0.3171, allocations: 108.9 kB / 496.1 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.133e-05/0.3172, allocations: 101 kB / 496.2 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.254e-05/0.3172, allocations: 180.2 kB / 496.4 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.791e-05/0.3173, allocations: 184.3 kB / 496.6 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.022e-05/0.3174, allocations: 180.3 kB / 496.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.085e-05/0.3174, allocations: 184.2 kB / 497 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.3176, allocations: 311.5 kB / 497.3 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.454e-05/0.3177, allocations: 186.1 kB / 497.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.763e-05/0.3178, allocations: 188.2 kB / 497.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.88e-05/0.3179, allocations: 104.9 kB / 497.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.3179, allocations: 184.2 kB / 497.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.318, allocations: 112.9 kB / 498 MB, free: 15.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.225e-05/0.3181, allocations: 99.27 kB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3181, allocations: 0 / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001849/0.3199, allocations: 0.7417 MB / 498.9 MB, free: 14.49 MB / 382.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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.003314/0.3232, allocations: 1.26 MB / 0.4884 GB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.169e-05/0.3233, allocations: 23.94 kB / 0.4884 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3234, allocations: 0 / 0.4884 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.774e-06/0.3234, allocations: 0 / 0.4884 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.3239, allocations: 492.2 kB / 0.4889 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002639/0.3242, allocations: 203 kB / 0.4891 GB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.3244, allocations: 0.6805 MB / 0.4897 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.35e-05/0.3244, allocations: 0 / 0.4897 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.56e-05/0.3244, allocations: 11.44 kB / 0.4898 GB, free: 11.77 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3245, allocations: 0 / 0.4898 GB, free: 11.77 MB / 382.1 MB Notification: Performance of Templates: time 0.0309/0.3554, allocations: 21.78 MB / 0.511 GB, free: 5.973 MB / 398.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ph_parameter.pipe 2>&1)