Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_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_pd_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pd_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_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.006097/0.006098, allocations: 100.9 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.001622/0.001622, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.401/1.401, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04985/0.04985, allocations: 9.1 MB / 279 MB, free: 12.06 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.002156/0.002156, allocations: 74.39 kB / 387 MB, free: 8.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2495, allocations: 48.15 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pd_parameter): time 0.0177/0.2672, allocations: 16.9 MB / 452 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006318/0.2736, allocations: 5.803 MB / 457.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.709e-05/0.2736, allocations: 0 / 457.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007396/0.2744, allocations: 262.2 kB / 458.1 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.415e-05/0.2745, allocations: 31.11 kB / 458.1 MB, free: 5.961 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'. Notification: Performance of NFTyping.typeClassSections: time 0.01133/0.2858, allocations: 4.115 MB / 462.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.2859, allocations: 52.67 kB / 462.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.01e-05/0.286, allocations: 2.375 kB / 462.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.247e-05/0.2861, allocations: 30.3 kB / 462.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.74e-05/0.2861, allocations: 11.03 kB / 462.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.285e-06/0.2861, allocations: 0 / 462.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01236/0.2985, allocations: 6.864 MB / 469.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.707e-05/0.2986, allocations: 7.938 kB / 469.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.893e-05/0.2986, allocations: 15.94 kB / 469.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007379/0.306, allocations: 2.853 MB / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.306, allocations: 0 / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3061, allocations: 0 / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.872e-06/0.3061, allocations: 0 / 472 MB, free: 11.79 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.001129/0.3072, allocations: 0.6254 MB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3073, allocations: 8.031 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.411e-05/0.3073, allocations: 46.48 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.519e-05/0.3073, allocations: 3.953 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.3075, allocations: 159.1 kB / 472.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.3075, allocations: 4 kB / 472.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.186e-06/0.3075, allocations: 4 kB / 472.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.3076, allocations: 37.69 kB / 472.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.3076, allocations: 0 / 472.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.3077, allocations: 3.938 kB / 472.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.3077, allocations: 7.938 kB / 472.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.646e-05/0.3077, allocations: 11.94 kB / 472.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002161/0.3079, allocations: 161.7 kB / 473.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.989e-05/0.308, allocations: 34.58 kB / 473.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.871e-05/0.308, allocations: 24.81 kB / 473.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01907/0.3271, allocations: 9.94 MB / 483.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/0.3272, allocations: 46.5 kB / 483.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 2.054e-06/0.3272, allocations: 0 / 483.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002097/0.3274, allocations: 69.62 kB / 483.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.3275, allocations: 51.41 kB / 483.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.735e-05/0.3276, allocations: 105.8 kB / 483.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.3276, allocations: 25.7 kB / 483.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.3276, allocations: 80.14 kB / 483.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.914e-05/0.3277, allocations: 27.73 kB / 483.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.3277, allocations: 25.86 kB / 483.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3279, allocations: 310.8 kB / 483.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.967e-05/0.3279, allocations: 8 kB / 483.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.917e-05/0.3279, allocations: 15.98 kB / 483.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.159e-05/0.328, allocations: 36.8 kB / 483.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.328, allocations: 0 / 483.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.223e-05/0.3281, allocations: 61.62 kB / 484 MB, free: 13.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3281, allocations: 8 kB / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3281, allocations: 0 / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.3281, allocations: 4.062 kB / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3281, allocations: 0 / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3281, allocations: 0 / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.079e-05/0.3282, allocations: 3.984 kB / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-06/0.3282, allocations: 0 / 484 MB, free: 13.91 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 9.373e-05/0.3283, allocations: 109.8 kB / 484.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.3283, allocations: 7.891 kB / 484.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.3285, allocations: 174.8 kB / 484.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.052e-05/0.3286, allocations: 188.2 kB / 484.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.23e-05/0.3286, allocations: 180.2 kB / 484.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-05/0.3287, allocations: 184.2 kB / 484.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.329, allocations: 413.2 kB / 485.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.715e-05/0.3291, allocations: 104.9 kB / 485.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.168e-05/0.3291, allocations: 108.9 kB / 485.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.023e-05/0.3292, allocations: 188.1 kB / 485.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.498e-05/0.3293, allocations: 176.3 kB / 485.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002165/0.3296, allocations: 180.3 kB / 485.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-05/0.3297, allocations: 180.2 kB / 486.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002519/0.3299, allocations: 315.7 kB / 486.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.33, allocations: 190 kB / 486.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.3302, allocations: 176.3 kB / 486.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.3303, allocations: 108.9 kB / 486.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.3305, allocations: 180.2 kB / 487.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.093e-05/0.3305, allocations: 116.9 kB / 487.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.171e-05/0.3306, allocations: 99.27 kB / 487.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3306, allocations: 0 / 487.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001822/0.3325, allocations: 0.6075 MB / 487.9 MB, free: 9.75 MB / 366.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.002914/0.3354, allocations: 1.678 MB / 489.6 MB, free: 8.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.064e-05/0.3355, allocations: 16 kB / 489.6 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3355, allocations: 0 / 489.6 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.593e-06/0.3355, allocations: 4.062 kB / 489.6 MB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006736/0.3362, allocations: 492.2 kB / 490.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.3381, allocations: 1.638 MB / 491.7 MB, free: 5.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3384, allocations: 0.6729 MB / 492.4 MB, free: 5.117 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.683e-05/0.3384, allocations: 7.984 kB / 492.4 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.476e-05/0.3384, allocations: 11.44 kB / 492.4 MB, free: 5.098 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3384, allocations: 0 / 492.4 MB, free: 5.098 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05382/0.3923, allocations: 20.93 MB / 0.5013 GB, free: 156 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/8.936, allocations: 15.98 kB / 0.5013 GB, free: 140 kB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe 2>&1)