Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009867/0.009867, allocations: 176.1 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.024/2.024, allocations: 194.5 MB / 210.3 MB, free: 8.586 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002127/0.002127, allocations: 112.7 kB / 255.6 MB, free: 11.2 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2554/0.2554, allocations: 40.01 MB / 340.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004911/0.000491, allocations: 10.47 kB / 406.3 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 54.87 MB / 461.1 MB, free: 3.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.732/2.834, allocations: 0.8222 GB / 1.273 GB, free: 119.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003792/2.834, allocations: 93.7 kB / 1.273 GB, free: 119.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.643/6.477, allocations: 0.7352 GB / 2.008 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.665e-06/6.477, allocations: 3.938 kB / 2.008 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.839e-05/6.477, allocations: 23.98 kB / 2.008 GB, free: 13.53 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.005905/6.483, allocations: 1.469 MB / 2.009 GB, free: 12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/6.483, allocations: 8.031 kB / 2.009 GB, free: 12 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004808/6.484, allocations: 126.7 kB / 2.009 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002248/6.486, allocations: 282.6 kB / 2.01 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/6.489, allocations: 0.6936 MB / 2.01 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/6.489, allocations: 121.3 kB / 2.01 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/6.489, allocations: 67.98 kB / 2.011 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003367/6.493, allocations: 1.222 MB / 2.012 GB, free: 9.363 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/6.493, allocations: 4 kB / 2.012 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002013/6.493, allocations: 32 kB / 2.012 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/6.493, allocations: 73.22 kB / 2.012 GB, free: 9.258 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002938/6.496, allocations: 1.028 MB / 2.013 GB, free: 8.23 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/6.506, allocations: 4.815 MB / 2.018 GB, free: 3.113 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008073/6.507, allocations: 267.4 kB / 2.018 GB, free: 2.844 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004087/6.508, allocations: 247.7 kB / 2.018 GB, free: 2.566 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/6.508, allocations: 34.73 kB / 2.018 GB, free: 2.523 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=27): time 3.357e-06/6.508, allocations: 0 / 2.018 GB, free: 2.523 MB / 0.4948 GB Notification: Performance of matching and sorting (n=32): time 0.01012/6.518, allocations: 1.671 MB / 2.02 GB, free: 0.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.514e-05/6.518, allocations: 136.5 kB / 2.02 GB, free: 0.5859 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4088/6.927, allocations: 0.818 MB / 2.021 GB, free: 80.53 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001602/6.927, allocations: 34.39 kB / 2.021 GB, free: 80.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007707/6.928, allocations: 0.5852 MB / 2.021 GB, free: 80.33 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000258/6.928, allocations: 132.2 kB / 2.021 GB, free: 80.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/6.928, allocations: 24.81 kB / 2.021 GB, free: 80.27 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002386/6.929, allocations: 398.3 kB / 2.022 GB, free: 79.96 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/6.93, allocations: 280.9 kB / 2.022 GB, free: 79.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/6.932, allocations: 0.9155 MB / 2.023 GB, free: 79.14 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/6.934, allocations: 489.6 kB / 2.023 GB, free: 79.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.333e-05/6.934, allocations: 6.094 kB / 2.023 GB, free: 79.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=139) (initialization): time 0.005631/6.939, allocations: 1.304 MB / 2.025 GB, free: 79.04 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.343e-05/6.939, allocations: 14.31 kB / 2.025 GB, free: 79.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.63e-05/6.94, allocations: 22.3 kB / 2.025 GB, free: 79.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003487/6.943, allocations: 277.2 kB / 2.025 GB, free: 79.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002132/6.945, allocations: 239.1 kB / 2.025 GB, free: 79.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/6.948, allocations: 0.8927 MB / 2.026 GB, free: 78.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002678/6.95, allocations: 68.45 kB / 2.026 GB, free: 78.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003873/6.951, allocations: 93.44 kB / 2.026 GB, free: 78.51 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.00117/6.952, allocations: 346 kB / 2.027 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003992/6.952, allocations: 93.16 kB / 2.027 GB, free: 78.35 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/6.955, allocations: 465.6 kB / 2.027 GB, free: 78.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/6.955, allocations: 4.094 kB / 2.027 GB, free: 78.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/6.955, allocations: 0.75 kB / 2.027 GB, free: 78.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/6.955, allocations: 3.5 kB / 2.027 GB, free: 78.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004286/6.959, allocations: 1.087 MB / 2.028 GB, free: 77.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/6.959, allocations: 1.188 kB / 2.028 GB, free: 77.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003146/6.962, allocations: 178.8 kB / 2.028 GB, free: 77.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002188/6.963, allocations: 27.11 kB / 2.028 GB, free: 77.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.352e-05/6.963, allocations: 10.98 kB / 2.028 GB, free: 77.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003421/6.966, allocations: 2.696 MB / 2.031 GB, free: 75.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/6.966, allocations: 0.9375 kB / 2.031 GB, free: 75.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/6.969, allocations: 0.6816 MB / 2.032 GB, free: 75.19 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007631/6.97, allocations: 204.8 kB / 2.032 GB, free: 75.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003134/6.97, allocations: 7.719 kB / 2.032 GB, free: 75.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/6.971, allocations: 26.45 kB / 2.032 GB, free: 75.05 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/6.971, allocations: 21.38 kB / 2.032 GB, free: 75.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.376e-05/6.972, allocations: 22.05 kB / 2.032 GB, free: 75.05 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002409/6.974, allocations: 0.6026 MB / 2.033 GB, free: 74.94 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.424e-06/6.974, allocations: 0 / 2.033 GB, free: 74.94 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004776/6.979, allocations: 0.5189 MB / 2.033 GB, free: 74.94 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01047/6.989, allocations: 2.563 MB / 2.036 GB, free: 74.05 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004175/6.994, allocations: 0.697 MB / 2.036 GB, free: 74.04 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/6.994, allocations: 0 / 2.036 GB, free: 74.04 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002668/6.996, allocations: 355.3 kB / 2.037 GB, free: 73.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005298/7.002, allocations: 380.2 kB / 2.037 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02411/7.026, allocations: 20.4 MB / 2.057 GB, free: 56.92 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007592/7.027, allocations: 1.051 MB / 2.058 GB, free: 56.22 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002517/7.029, allocations: 382.5 kB / 2.058 GB, free: 56.21 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008965/7.03, allocations: 334.1 kB / 2.059 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.222e-06/7.03, allocations: 2.25 kB / 2.059 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/7.138, allocations: 43.51 MB / 2.101 GB, free: 55.35 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002494/7.139, allocations: 307.2 kB / 2.101 GB, free: 54.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.454/11.59, allocations: 0 / 2.101 GB, free: 54.98 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat