Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_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: "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_ps_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_ps_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter",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.005221/0.005221, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001188/0.001188, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.336/1.336, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04536/0.04536, 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.00147/0.00147, allocations: 74.56 kB / 387 MB, free: 8.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2633, allocations: 48.15 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_ps_parameter): time 0.0187/0.282, allocations: 16.89 MB / 452 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009815/0.2919, allocations: 10.47 MB / 462.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.833e-05/0.292, allocations: 1.062 kB / 462.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007242/0.2928, allocations: 265.1 kB / 462.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.995e-05/0.2928, allocations: 30.08 kB / 462.8 MB, free: 2.121 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:1231:13-1231: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:1231:13-1231: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.01451/0.3073, allocations: 5.738 MB / 468.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.3074, allocations: 56.22 kB / 468.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.924e-05/0.3075, allocations: 2.438 kB / 468.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.903e-05/0.3076, allocations: 27.77 kB / 468.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.899e-05/0.3076, allocations: 14.56 kB / 468.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.325e-06/0.3077, allocations: 1.531 kB / 468.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01416/0.3218, allocations: 8.747 MB / 477.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.61e-05/0.3219, allocations: 4 kB / 477.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.184e-05/0.3219, allocations: 19.86 kB / 477.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008499/0.3304, allocations: 3.621 MB / 481 MB, free: 2.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3305, allocations: 0 / 481 MB, free: 2.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3305, allocations: 0 / 481 MB, free: 2.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3305, allocations: 0 / 481 MB, free: 2.816 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.001393/0.3319, allocations: 0.7484 MB / 481.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.332, allocations: 12.03 kB / 481.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.999e-05/0.332, allocations: 34.56 kB / 481.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.332, allocations: 7.844 kB / 481.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.3321, allocations: 171.1 kB / 482 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.3322, allocations: 4 kB / 482 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.3322, allocations: 3.938 kB / 482 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.955e-05/0.3323, allocations: 41.64 kB / 482 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.3323, allocations: 0 / 482 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.3323, allocations: 0 / 482 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3323, allocations: 3.984 kB / 482 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.778e-05/0.3323, allocations: 19.94 kB / 482 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.3325, allocations: 165.5 kB / 482.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.01e-05/0.3326, allocations: 34.56 kB / 482.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.634e-05/0.3326, allocations: 24.88 kB / 482.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05584/0.3885, allocations: 33.03 MB / 0.5032 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.3885, allocations: 30.56 kB / 0.5032 GB, free: 10.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 2.715e-06/0.3886, allocations: 0 / 0.5032 GB, free: 10.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000213/0.3888, allocations: 77.84 kB / 0.5033 GB, free: 10.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.3888, allocations: 51.41 kB / 0.5034 GB, free: 10.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.561e-05/0.3889, allocations: 105.9 kB / 0.5035 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.3889, allocations: 25.7 kB / 0.5035 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.037e-05/0.3889, allocations: 84.08 kB / 0.5036 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.315e-05/0.389, allocations: 19.72 kB / 0.5036 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.389, allocations: 9.719 kB / 0.5036 GB, free: 10.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.202e-05/0.3891, allocations: 318.8 kB / 0.5039 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.053e-05/0.3891, allocations: 12 kB / 0.5039 GB, free: 9.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.747e-05/0.3892, allocations: 15.98 kB / 0.5039 GB, free: 9.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.297e-05/0.3892, allocations: 33 kB / 0.5039 GB, free: 9.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3892, allocations: 0 / 0.5039 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.094e-05/0.3893, allocations: 65.59 kB / 0.504 GB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3893, allocations: 7.938 kB / 0.504 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3893, allocations: 0 / 0.504 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.3894, allocations: 4 kB / 0.504 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.994e-06/0.3894, allocations: 0 / 0.504 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.3894, allocations: 3.938 kB / 0.504 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.243e-05/0.3894, allocations: 7.922 kB / 0.504 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.3894, allocations: 0 / 0.504 GB, free: 9.645 MB / 398.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 6.776e-05/0.3895, allocations: 113.9 kB / 0.5041 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.3895, allocations: 3.938 kB / 0.5041 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.3896, allocations: 166.9 kB / 0.5043 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.086e-05/0.3897, allocations: 188.2 kB / 0.5045 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.462e-05/0.3898, allocations: 176.3 kB / 0.5047 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.281e-05/0.3898, allocations: 180.2 kB / 0.5048 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.3901, allocations: 425.1 kB / 0.5052 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.359e-05/0.3901, allocations: 101 kB / 0.5053 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.199e-05/0.3901, allocations: 108.9 kB / 0.5054 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.322e-05/0.3902, allocations: 184.1 kB / 0.5056 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.041e-05/0.3903, allocations: 180.3 kB / 0.5058 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.798e-05/0.3903, allocations: 188.2 kB / 0.506 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.521e-05/0.3904, allocations: 176.3 kB / 0.5061 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001235/0.3905, allocations: 303.8 kB / 0.5064 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.519e-05/0.3906, allocations: 186.1 kB / 0.5066 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.46e-05/0.3907, allocations: 188.1 kB / 0.5068 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.661e-05/0.3907, allocations: 105 kB / 0.5069 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.323e-05/0.3908, allocations: 188.2 kB / 0.507 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.3908, allocations: 101.3 kB / 0.5071 GB, free: 6.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.77e-05/0.3909, allocations: 99.27 kB / 0.5072 GB, free: 6.117 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3909, allocations: 0 / 0.5072 GB, free: 6.117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002498/0.3934, allocations: 0.8588 MB / 0.5081 GB, free: 5.258 MB / 398.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.003697/0.3971, allocations: 2.061 MB / 0.5101 GB, free: 3.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.924e-05/0.3972, allocations: 20 kB / 0.5101 GB, free: 3.145 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3972, allocations: 7.875 kB / 0.5101 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.044e-06/0.3973, allocations: 4 kB / 0.5101 GB, free: 3.133 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.3978, allocations: 487.9 kB / 0.5106 GB, free: 2.652 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.3995, allocations: 1.749 MB / 0.5123 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.3997, allocations: 0.6768 MB / 0.513 GB, free: 120 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.368e-05/0.3998, allocations: 0 / 0.513 GB, free: 120 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/0.3998, allocations: 15.38 kB / 0.513 GB, free: 104 kB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3998, allocations: 0 / 0.513 GB, free: 104 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05047/0.4503, allocations: 24.98 MB / 0.5374 GB, free: 7.094 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.82/9.27, allocations: 12.05 kB / 0.5374 GB, free: 7.082 MB / 430.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_ps_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_ps_parameter.pipe 2>&1)