Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.63/2.63, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004357, allocations: 8 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.407, allocations: 48.7 MB / 331.4 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.871/8.278, allocations: 2.545 GB / 2.869 GB, free: 91.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/8.279, allocations: 85.61 kB / 2.869 GB, free: 91.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.028/11.31, allocations: 0.5613 GB / 3.43 GB, free: 38.67 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.516e-06/11.31, allocations: 0 / 3.43 GB, free: 38.67 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002196/11.31, allocations: 45.75 kB / 3.43 GB, free: 38.66 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01403/11.32, allocations: 2.968 MB / 3.433 GB, free: 37.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/11.32, allocations: 7.625 kB / 3.433 GB, free: 37.09 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008863/11.32, allocations: 198.5 kB / 3.433 GB, free: 37.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00561/11.33, allocations: 0.5169 MB / 3.434 GB, free: 36.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005856/11.33, allocations: 1.454 MB / 3.435 GB, free: 36.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/11.33, allocations: 109.6 kB / 3.435 GB, free: 36.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000694/11.33, allocations: 133.1 kB / 3.435 GB, free: 36.58 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008243/11.34, allocations: 2.272 MB / 3.437 GB, free: 36.19 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.717e-05/11.34, allocations: 5.875 kB / 3.437 GB, free: 36.19 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002828/11.34, allocations: 52.88 kB / 3.438 GB, free: 36.19 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002264/11.34, allocations: 106.2 kB / 3.438 GB, free: 36.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00845/11.35, allocations: 2.051 MB / 3.44 GB, free: 36.17 MB / 458.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.01952/11.37, allocations: 9.643 MB / 3.449 GB, free: 30.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005586/11.38, allocations: 1.379 MB / 3.45 GB, free: 30.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05671/11.43, allocations: 18.77 MB / 3.469 GB, free: 18.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004189/11.44, allocations: 1.032 MB / 3.47 GB, free: 18.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 4.869e-06/11.44, allocations: 0 / 3.47 GB, free: 18.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.02192/11.46, allocations: 5.161 MB / 3.475 GB, free: 17.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/11.46, allocations: 281.1 kB / 3.475 GB, free: 17.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/11.46, allocations: 0.98 MB / 3.476 GB, free: 16.96 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003589/11.46, allocations: 45.7 kB / 3.476 GB, free: 16.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005993/11.46, allocations: 0.6389 MB / 3.477 GB, free: 16.58 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005208/11.46, allocations: 356.5 kB / 3.477 GB, free: 16.36 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/11.46, allocations: 22.12 kB / 3.477 GB, free: 16.36 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/11.46, allocations: 365.5 kB / 3.477 GB, free: 16.05 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002113/11.47, allocations: 0.6712 MB / 3.478 GB, free: 16.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002444/11.47, allocations: 1.008 MB / 3.479 GB, free: 15.67 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002547/11.47, allocations: 0.8317 MB / 3.48 GB, free: 15.61 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/11.47, allocations: 3.969 kB / 3.48 GB, free: 15.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006405/11.48, allocations: 1.94 MB / 3.482 GB, free: 15.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001952/11.48, allocations: 3.263 MB / 3.485 GB, free: 28.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.482e-05/11.48, allocations: 15.44 kB / 3.485 GB, free: 28.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009123/11.48, allocations: 140.5 kB / 3.485 GB, free: 28.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/11.48, allocations: 320.6 kB / 3.485 GB, free: 28.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/11.49, allocations: 1.252 MB / 3.487 GB, free: 27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002555/11.49, allocations: 163.8 kB / 3.487 GB, free: 26.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004066/11.49, allocations: 62.31 kB / 3.487 GB, free: 26.97 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/11.49, allocations: 3.531 kB / 3.487 GB, free: 26.97 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006366/11.49, allocations: 1.841 MB / 3.489 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.704e-05/11.49, allocations: 14.39 kB / 3.489 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007125/11.5, allocations: 137.8 kB / 3.489 GB, free: 26.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002807/11.5, allocations: 317.2 kB / 3.489 GB, free: 26.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/11.5, allocations: 1.266 MB / 3.49 GB, free: 25.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/11.5, allocations: 155.6 kB / 3.49 GB, free: 25.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002425/11.5, allocations: 60.8 kB / 3.49 GB, free: 25.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001518/11.5, allocations: 0.5411 MB / 3.491 GB, free: 25.32 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004241/11.5, allocations: 130.2 kB / 3.491 GB, free: 25.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/11.51, allocations: 4.756 MB / 3.496 GB, free: 23.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.178e-05/11.51, allocations: 58.11 kB / 3.496 GB, free: 23.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/11.51, allocations: 0 / 3.496 GB, free: 23.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008005/11.52, allocations: 3.982 MB / 3.5 GB, free: 21.35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/11.54, allocations: 6.736 MB / 3.506 GB, free: 18.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/11.54, allocations: 7.672 kB / 3.506 GB, free: 18.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/11.54, allocations: 237.7 kB / 3.507 GB, free: 18.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/11.54, allocations: 191.9 kB / 3.507 GB, free: 18.35 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003307/11.54, allocations: 38.56 kB / 3.507 GB, free: 18.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/11.54, allocations: 1.292 MB / 3.508 GB, free: 17.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/11.54, allocations: 0 / 3.508 GB, free: 17.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009732/11.55, allocations: 4.36 MB / 3.512 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/11.55, allocations: 0.5294 MB / 3.513 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000518/11.55, allocations: 38.95 kB / 3.513 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001911/11.56, allocations: 122.4 kB / 3.513 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/11.56, allocations: 81.62 kB / 3.513 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/11.56, allocations: 39.89 kB / 3.513 GB, free: 14.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001852/11.56, allocations: 0.8677 MB / 3.514 GB, free: 13.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.51e-07/11.56, allocations: 4 kB / 3.514 GB, free: 13.42 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009774/11.57, allocations: 2.163 MB / 3.516 GB, free: 11.31 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02517/11.59, allocations: 7.184 MB / 3.523 GB, free: 5.051 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009825/11.6, allocations: 3.179 MB / 3.526 GB, free: 2.227 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/11.6, allocations: 0 / 3.526 GB, free: 2.227 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003661/11.61, allocations: 1.453 MB / 3.528 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005333/11.61, allocations: 0.5661 MB / 3.528 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7993/12.41, allocations: 132.8 MB / 3.658 GB, free: 34.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/12.41, allocations: 1.701 MB / 3.659 GB, free: 33.51 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001744/12.41, allocations: 0.8451 MB / 3.66 GB, free: 33.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.342e-06/12.41, allocations: 4 kB / 3.66 GB, free: 33.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.13/17.54, allocations: 75.69 MB / 3.734 GB, free: 47.98 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat