Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.301/2.301, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.0004262, allocations: 12 kB / 314.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.332, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.5993/0.9314, allocations: 143.8 MB / 0.5011 GB, free: 12.26 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01485/0.9463, allocations: 8.409 MB / 0.5093 GB, free: 10.84 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.9475, allocations: 28.34 kB / 0.5093 GB, free: 10.82 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001473/0.949, allocations: 323 kB / 0.5096 GB, free: 10.67 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00631/0.9553, allocations: 1.49 MB / 0.5111 GB, free: 10.28 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005257/0.9606, allocations: 1.237 MB / 0.5123 GB, free: 9.945 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002735/0.9634, allocations: 1.291 MB / 0.5135 GB, free: 9.676 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001056/0.9645, allocations: 463.6 kB / 0.514 GB, free: 9.477 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004862/0.9694, allocations: 1.267 MB / 0.5152 GB, free: 9.133 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005482/0.9749, allocations: 1.322 MB / 0.5165 GB, free: 8.758 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003578/0.9753, allocations: 36.5 kB / 0.5166 GB, free: 8.758 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005599/0.9809, allocations: 1.219 MB / 0.5177 GB, free: 8.539 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009918/0.982, allocations: 365 kB / 0.5181 GB, free: 8.406 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006206/0.9826, allocations: 226.3 kB / 0.5183 GB, free: 8.344 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00496/0.9876, allocations: 1.556 MB / 0.5198 GB, free: 7.625 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.9877, allocations: 0 / 0.5198 GB, free: 7.625 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.9877, allocations: 4 kB / 0.5198 GB, free: 7.621 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.763e-05/0.9877, allocations: 0 / 0.5198 GB, free: 7.621 MB / 410.7 MB 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.005112/0.9929, allocations: 1.213 MB / 0.521 GB, free: 6.793 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.9929, allocations: 10.31 kB / 0.521 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004171/0.9934, allocations: 131.4 kB / 0.5211 GB, free: 6.734 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003027/0.9964, allocations: 298.1 kB / 0.5214 GB, free: 6.617 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00233/0.9988, allocations: 0.6043 MB / 0.522 GB, free: 6.242 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002036/0.999, allocations: 127.1 kB / 0.5221 GB, free: 6.168 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002688/0.9993, allocations: 64.72 kB / 0.5222 GB, free: 6.168 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004163/1.003, allocations: 1.246 MB / 0.5234 GB, free: 5.723 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.243e-05/1.004, allocations: 3.25 kB / 0.5234 GB, free: 5.723 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002521/1.004, allocations: 40.73 kB / 0.5235 GB, free: 5.719 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002026/1.004, allocations: 77.42 kB / 0.5235 GB, free: 5.707 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00434/1.008, allocations: 1.056 MB / 0.5246 GB, free: 5.527 MB / 410.7 MB 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.01404/1.023, allocations: 4.832 MB / 0.5293 GB, free: 2.109 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/1.024, allocations: 263.5 kB / 0.5295 GB, free: 2.047 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002795/1.024, allocations: 130 kB / 0.5297 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/1.024, allocations: 36.66 kB / 0.5297 GB, free: 1.902 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 6.161e-06/1.024, allocations: 0 / 0.5297 GB, free: 1.902 MB / 410.7 MB Notification: Performance of matching and sorting (n=32): time 0.01398/1.038, allocations: 1.708 MB / 0.5314 GB, free: 1.039 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/1.038, allocations: 133.5 kB / 0.5315 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/1.04, allocations: 0.9195 MB / 0.5324 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/1.041, allocations: 33.98 kB / 0.5324 GB, free: 0.543 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006731/1.041, allocations: 0.6099 MB / 0.533 GB, free: 104 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/1.041, allocations: 131.7 kB / 0.5331 GB, free: 16 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-05/1.042, allocations: 25.56 kB / 0.5332 GB, free: 12 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003039/1.042, allocations: 363 kB / 0.5335 GB, free: 15.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009936/1.043, allocations: 274.2 kB / 0.5338 GB, free: 15.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/1.045, allocations: 0.9179 MB / 0.5347 GB, free: 14.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/1.046, allocations: 469.3 kB / 0.5351 GB, free: 14.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-05/1.046, allocations: 9.297 kB / 0.5351 GB, free: 14.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.004276/1.051, allocations: 1.24 MB / 0.5363 GB, free: 14.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.107e-05/1.051, allocations: 13.16 kB / 0.5364 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.418e-05/1.051, allocations: 23.19 kB / 0.5364 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002104/1.053, allocations: 275.4 kB / 0.5366 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/1.054, allocations: 225.7 kB / 0.5369 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/1.056, allocations: 0.894 MB / 0.5377 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/1.057, allocations: 61.05 kB / 0.5378 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002081/1.058, allocations: 77.05 kB / 0.5379 GB, free: 13.36 MB / 426.7 MB 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.0008201/1.058, allocations: 351.7 kB / 0.5382 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002809/1.059, allocations: 86.97 kB / 0.5383 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/1.06, allocations: 474.4 kB / 0.5387 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/1.06, allocations: 4 kB / 0.5387 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/1.06, allocations: 3.938 kB / 0.5387 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/1.06, allocations: 3.984 kB / 0.5387 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/1.063, allocations: 1.093 MB / 0.5398 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.063, allocations: 0 / 0.5398 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001931/1.065, allocations: 179.8 kB / 0.54 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/1.065, allocations: 27.22 kB / 0.54 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/1.065, allocations: 6.75 kB / 0.54 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/1.068, allocations: 2.686 MB / 0.5426 GB, free: 8.746 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.068, allocations: 3.984 kB / 0.5426 GB, free: 8.742 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/1.07, allocations: 0.6738 MB / 0.5433 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005533/1.071, allocations: 197.5 kB / 0.5435 GB, free: 8.016 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/1.071, allocations: 9.062 kB / 0.5435 GB, free: 8.012 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008227/1.072, allocations: 25.98 kB / 0.5435 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/1.072, allocations: 39.34 kB / 0.5436 GB, free: 7.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.258e-05/1.072, allocations: 14.69 kB / 0.5436 GB, free: 7.945 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001299/1.073, allocations: 0.5977 MB / 0.5442 GB, free: 7.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.073, allocations: 0 / 0.5442 GB, free: 7.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002275/1.076, allocations: 425.7 kB / 0.5446 GB, free: 7.094 MB / 426.7 MB 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.005349/1.081, allocations: 1.75 MB / 0.5463 GB, free: 5.531 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00234/1.083, allocations: 0.6771 MB / 0.5469 GB, free: 5.004 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/1.084, allocations: 4 kB / 0.5469 GB, free: 5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/1.085, allocations: 357.6 kB / 0.5473 GB, free: 4.688 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003227/1.088, allocations: 375 kB / 0.5476 GB, free: 4.391 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/1.103, allocations: 5.785 MB / 0.5533 GB, free: 14.99 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/1.105, allocations: 1.056 MB / 0.5543 GB, free: 13.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007773/1.105, allocations: 316.5 kB / 0.5546 GB, free: 13.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/1.105, allocations: 4 kB / 0.5546 GB, free: 13.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.883/4.988, allocations: 27.42 MB / 0.5814 GB, free: 2.652 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat