Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.597/2.597, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004706/0.0004706, allocations: 16 kB / 314.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4316, allocations: 54.86 MB / 369.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.131/8.563, allocations: 2.656 GB / 3.016 GB, free: 35.78 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/8.563, allocations: 78.53 kB / 3.016 GB, free: 35.74 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.319/11.88, allocations: 0.5748 GB / 3.591 GB, free: 16.48 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.405e-06/11.88, allocations: 2.953 kB / 3.591 GB, free: 16.48 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002631/11.88, allocations: 46.59 kB / 3.591 GB, free: 16.43 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01766/11.9, allocations: 3.032 MB / 3.594 GB, free: 13.37 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/11.9, allocations: 12.03 kB / 3.594 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/11.9, allocations: 199.3 kB / 3.594 GB, free: 13.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005865/11.91, allocations: 0.5385 MB / 3.595 GB, free: 12.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005531/11.91, allocations: 1.458 MB / 3.596 GB, free: 11.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/11.91, allocations: 116.3 kB / 3.596 GB, free: 11.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006807/11.91, allocations: 127.4 kB / 3.597 GB, free: 10.92 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008012/11.92, allocations: 2.281 MB / 3.599 GB, free: 8.508 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.826e-05/11.92, allocations: 2.062 kB / 3.599 GB, free: 8.508 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000278/11.92, allocations: 58.64 kB / 3.599 GB, free: 8.457 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001966/11.92, allocations: 102.5 kB / 3.599 GB, free: 8.355 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008111/11.93, allocations: 2.058 MB / 3.601 GB, free: 6.289 MB / 490.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.02037/11.95, allocations: 9.65 MB / 3.61 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006101/11.96, allocations: 1.387 MB / 3.612 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4613/12.42, allocations: 18.78 MB / 3.63 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004097/12.42, allocations: 1.032 MB / 3.631 GB, free: 40.35 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 4.889e-06/12.42, allocations: 0 / 3.631 GB, free: 40.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.02143/12.44, allocations: 5.17 MB / 3.636 GB, free: 39.73 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/12.44, allocations: 269.9 kB / 3.636 GB, free: 39.42 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/12.45, allocations: 0.9846 MB / 3.637 GB, free: 39.27 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003326/12.45, allocations: 48.77 kB / 3.637 GB, free: 39.23 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006403/12.45, allocations: 0.6425 MB / 3.638 GB, free: 38.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004929/12.45, allocations: 361.2 kB / 3.638 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/12.45, allocations: 22.84 kB / 3.638 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001148/12.45, allocations: 364.3 kB / 3.639 GB, free: 38.46 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/12.45, allocations: 0.6787 MB / 3.639 GB, free: 38.46 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002275/12.45, allocations: 1.016 MB / 3.64 GB, free: 38.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002322/12.45, allocations: 0.8313 MB / 3.641 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/12.45, allocations: 0 / 3.641 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.005679/12.46, allocations: 1.93 MB / 3.643 GB, free: 37.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007849/12.46, allocations: 3.265 MB / 3.646 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.835e-05/12.46, allocations: 11.53 kB / 3.646 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008239/12.46, allocations: 138.3 kB / 3.646 GB, free: 34.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002559/12.46, allocations: 321.8 kB / 3.647 GB, free: 34.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009544/12.47, allocations: 1.258 MB / 3.648 GB, free: 33.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002353/12.47, allocations: 157.9 kB / 3.648 GB, free: 33.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/12.47, allocations: 67.44 kB / 3.648 GB, free: 33.49 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/12.47, allocations: 3.906 kB / 3.648 GB, free: 33.49 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005436/12.47, allocations: 1.837 MB / 3.65 GB, free: 33.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.562e-05/12.47, allocations: 8.594 kB / 3.65 GB, free: 33.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007064/12.47, allocations: 144.4 kB / 3.65 GB, free: 33.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/12.48, allocations: 322.8 kB / 3.65 GB, free: 33.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008869/12.48, allocations: 1.257 MB / 3.652 GB, free: 32.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/12.48, allocations: 151 kB / 3.652 GB, free: 32.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/12.48, allocations: 66.53 kB / 3.652 GB, free: 32.36 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (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,valveOpening1.nextEventScaled,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.00141/12.48, allocations: 0.5346 MB / 3.652 GB, free: 32.14 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004197/12.48, allocations: 137.1 kB / 3.653 GB, free: 32.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009218/12.49, allocations: 4.748 MB / 3.657 GB, free: 31.64 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.27e-05/12.49, allocations: 52.88 kB / 3.657 GB, free: 31.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/12.49, allocations: 0 / 3.657 GB, free: 31.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007602/12.5, allocations: 3.987 MB / 3.661 GB, free: 31.19 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/12.51, allocations: 6.728 MB / 3.668 GB, free: 30.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/12.51, allocations: 0 / 3.668 GB, free: 30.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001986/12.51, allocations: 249.2 kB / 3.668 GB, free: 30.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/12.52, allocations: 191.2 kB / 3.668 GB, free: 30.65 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002475/12.52, allocations: 42.31 kB / 3.668 GB, free: 30.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009269/12.52, allocations: 1.288 MB / 3.669 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/12.52, allocations: 5.922 kB / 3.669 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009318/12.53, allocations: 4.36 MB / 3.674 GB, free: 29.19 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/12.53, allocations: 0.5278 MB / 3.674 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004194/12.53, allocations: 33.58 kB / 3.674 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001702/12.53, allocations: 132.4 kB / 3.674 GB, free: 28.96 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002986/12.53, allocations: 88.78 kB / 3.674 GB, free: 28.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/12.53, allocations: 38.53 kB / 3.674 GB, free: 28.96 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001794/12.53, allocations: 0.8735 MB / 3.675 GB, free: 28.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.81e-07/12.53, allocations: 0 / 3.675 GB, free: 28.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01003/12.54, allocations: 2.186 MB / 3.677 GB, free: 28.8 MB / 0.4948 GB 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: 36 ($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,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.02272/12.57, allocations: 7.189 MB / 3.684 GB, free: 27.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008321/12.57, allocations: 3.231 MB / 3.688 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/12.57, allocations: 3.938 kB / 3.688 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002972/12.58, allocations: 1.483 MB / 3.689 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004943/12.58, allocations: 0.5812 MB / 3.69 GB, free: 27.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3998/12.98, allocations: 134.8 MB / 3.821 GB, free: 5.043 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002804/12.98, allocations: 1.7 MB / 3.823 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003047/12.99, allocations: 0.8531 MB / 3.824 GB, free: 2.867 MB / 0.5261 GB Notification: Performance of SimCode: time 1.714e-06/12.99, allocations: 0 / 3.824 GB, free: 2.867 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.023/18.01, allocations: 76.05 MB / 3.898 GB, free: 69.56 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat