Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_Ts_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_Ts_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_Ts_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_Ts_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_Ts_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.007117/0.007117, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001638/0.001638, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.417/1.417, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04753/0.04753, allocations: 9.099 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.001495/0.001496, allocations: 70.39 kB / 387 MB, free: 8.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2349, allocations: 48.16 MB / 435.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_Ts_parameter): time 0.01654/0.2515, allocations: 16.9 MB / 452 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.2534, allocations: 1.846 MB / 453.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.384e-05/0.2534, allocations: 0 / 453.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006032/0.254, allocations: 306.4 kB / 454.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.028e-05/0.2541, allocations: 27.14 kB / 454.2 MB, free: 9.387 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.006569/0.2607, allocations: 2.914 MB / 457.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.379e-05/0.2608, allocations: 53.98 kB / 457.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.88e-05/0.2608, allocations: 5.688 kB / 457.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.094e-05/0.2609, allocations: 35.19 kB / 457.2 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.521e-05/0.2609, allocations: 14.56 kB / 457.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.704e-06/0.261, allocations: 0 / 457.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007539/0.2685, allocations: 4.956 MB / 462.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.2685, allocations: 0 / 462.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.794e-05/0.2686, allocations: 20.12 kB / 462.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004249/0.2729, allocations: 1.985 MB / 464.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2729, allocations: 3.938 kB / 464.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2729, allocations: 3.938 kB / 464.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.2729, allocations: 0 / 464.2 MB, free: 3.246 MB / 334.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.0008331/0.2738, allocations: 0.5138 MB / 464.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.2738, allocations: 9.469 kB / 464.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.191e-05/0.2738, allocations: 35.53 kB / 464.7 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.288e-05/0.2739, allocations: 5.422 kB / 464.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.274, allocations: 168.2 kB / 464.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.274, allocations: 1.469 kB / 464.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.274, allocations: 0 / 464.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.2741, allocations: 40.56 kB / 464.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2741, allocations: 0 / 464.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-06/0.2742, allocations: 0 / 464.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.2742, allocations: 1.062 kB / 464.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.542e-05/0.2742, allocations: 13.34 kB / 464.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001747/0.2744, allocations: 169.1 kB / 465.1 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.382e-05/0.2744, allocations: 38.31 kB / 465.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.79e-05/0.2745, allocations: 24.12 kB / 465.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03142/0.3059, allocations: 19.36 MB / 484.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.306, allocations: 34.55 kB / 484.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 2.395e-06/0.306, allocations: 0 / 484.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002841/0.3063, allocations: 81.61 kB / 484.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.3063, allocations: 51.41 kB / 484.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.389e-05/0.3064, allocations: 93.86 kB / 484.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.3064, allocations: 25.7 kB / 484.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.99e-05/0.3065, allocations: 84.3 kB / 484.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/0.3066, allocations: 31.77 kB / 484.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/0.3066, allocations: 9.719 kB / 484.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3068, allocations: 322.8 kB / 485.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.011e-05/0.3068, allocations: 15.92 kB / 485.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.442e-05/0.3068, allocations: 8 kB / 485.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.3069, allocations: 40.78 kB / 485.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.307, allocations: 4 kB / 485.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.648e-05/0.307, allocations: 61.64 kB / 485.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.3071, allocations: 8.062 kB / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3071, allocations: 0 / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.3071, allocations: 0 / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.465e-06/0.3071, allocations: 4 kB / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3071, allocations: 0 / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.575e-05/0.3071, allocations: 0 / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-06/0.3071, allocations: 0 / 485.4 MB, free: 11 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 7.388e-05/0.3072, allocations: 113.8 kB / 485.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.3073, allocations: 7.953 kB / 485.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.3074, allocations: 178.8 kB / 485.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-05/0.3075, allocations: 180.3 kB / 485.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-05/0.3076, allocations: 184.2 kB / 486 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001392/0.3077, allocations: 176.3 kB / 486.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.308, allocations: 417.1 kB / 486.6 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.154e-05/0.308, allocations: 112.9 kB / 486.7 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/0.3081, allocations: 105 kB / 486.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.582e-05/0.3081, allocations: 184.2 kB / 487 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.3082, allocations: 176.3 kB / 487.2 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.927e-05/0.3083, allocations: 180.2 kB / 487.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.017e-05/0.3083, allocations: 184.2 kB / 487.5 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.3085, allocations: 311.7 kB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.333e-05/0.3085, allocations: 186 kB / 488 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.167e-05/0.3086, allocations: 180.3 kB / 488.2 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.008e-05/0.3087, allocations: 104.9 kB / 488.3 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.296e-05/0.3088, allocations: 180.3 kB / 488.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.3088, allocations: 108.9 kB / 488.6 MB, free: 7.559 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.312e-05/0.3089, allocations: 99.27 kB / 488.7 MB, free: 7.461 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.352e-06/0.3089, allocations: 0 / 488.7 MB, free: 7.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001258/0.3101, allocations: 402.7 kB / 489.1 MB, free: 7.066 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.002091/0.3122, allocations: 1.358 MB / 490.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.183e-05/0.3123, allocations: 16.55 kB / 490.5 MB, free: 5.664 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3123, allocations: 0 / 490.5 MB, free: 5.664 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.553e-06/0.3123, allocations: 4.062 kB / 490.5 MB, free: 5.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.3129, allocations: 0.4892 MB / 490.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.3142, allocations: 1.549 MB / 492.5 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.3145, allocations: 0.6768 MB / 493.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.166e-05/0.3145, allocations: 0 / 493.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.12e-05/0.3145, allocations: 11.44 kB / 493.2 MB, free: 2.824 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3145, allocations: 0 / 493.2 MB, free: 2.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03802/0.3525, allocations: 15.47 MB / 0.4967 GB, free: 3.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.281/8.633, allocations: 3.984 kB / 0.4967 GB, free: 3.34 MB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_Ts_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_Ts_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_Ts_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_Ts_parameter.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_Ts_parameter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_Ts_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_Ts_parameter.pipe 2>&1)