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.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.415/2.415, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.447e-05/3.467e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.4007, allocations: 54.86 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.847/8.248, allocations: 2.673 GB / 3.029 GB, free: 85.15 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/8.248, allocations: 78.52 kB / 3.029 GB, free: 85.11 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479/12.73, allocations: 0.7985 GB / 3.827 GB, free: 27.43 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.865e-06/12.73, allocations: 0 / 3.827 GB, free: 27.43 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004115/12.73, allocations: 59.86 kB / 3.827 GB, free: 27.42 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02657/12.75, allocations: 3.66 MB / 3.831 GB, free: 25.39 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/12.75, allocations: 9.344 kB / 3.831 GB, free: 25.39 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00166/12.76, allocations: 263 kB / 3.831 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/12.77, allocations: 0.7791 MB / 3.832 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/12.78, allocations: 1.999 MB / 3.834 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000441/12.78, allocations: 156.1 kB / 3.834 GB, free: 24.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/12.79, allocations: 183.2 kB / 3.834 GB, free: 24.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01748/12.8, allocations: 3.323 MB / 3.837 GB, free: 22.63 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/12.8, allocations: 11.16 kB / 3.837 GB, free: 22.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005766/12.8, allocations: 79.59 kB / 3.838 GB, free: 22.57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004514/12.8, allocations: 146.5 kB / 3.838 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0176/12.82, allocations: 3.055 MB / 3.841 GB, free: 20.31 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.04015/12.86, allocations: 13.67 MB / 3.854 GB, free: 7.301 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/12.87, allocations: 1.959 MB / 3.856 GB, free: 5.637 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003999/12.88, allocations: 1.036 MB / 3.857 GB, free: 4.711 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0935/12.97, allocations: 18.9 MB / 3.875 GB, free: 0.6094 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4665/13.44, allocations: 1.6 MB / 3.877 GB, free: 47.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001766/13.44, allocations: 168.1 kB / 3.877 GB, free: 47.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.251e-06/13.44, allocations: 0 / 3.877 GB, free: 47.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.03162/13.47, allocations: 6.867 MB / 3.884 GB, free: 46.25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/13.47, allocations: 257.3 kB / 3.884 GB, free: 45.97 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/13.47, allocations: 1.253 MB / 3.885 GB, free: 45.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000629/13.48, allocations: 57.31 kB / 3.885 GB, free: 45.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001076/13.48, allocations: 0.8259 MB / 3.886 GB, free: 45.43 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001218/13.48, allocations: 0.5624 MB / 3.887 GB, free: 45.15 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002282/13.48, allocations: 35.41 kB / 3.887 GB, free: 45.15 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002282/13.48, allocations: 386.9 kB / 3.887 GB, free: 44.84 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0029/13.48, allocations: 0.9136 MB / 3.888 GB, free: 44.84 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003506/13.48, allocations: 1.356 MB / 3.889 GB, free: 44.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/13.49, allocations: 1.163 MB / 3.89 GB, free: 44.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-05/13.49, allocations: 2.844 kB / 3.89 GB, free: 44.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009783/13.5, allocations: 2.806 MB / 3.893 GB, free: 44.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001035/13.5, allocations: 4.252 MB / 3.897 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.761e-05/13.5, allocations: 9.875 kB / 3.897 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004465/13.5, allocations: 0.518 MB / 3.898 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003882/13.51, allocations: 454.4 kB / 3.898 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002674/13.51, allocations: 2.709 MB / 3.901 GB, free: 37.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004506/13.51, allocations: 255.2 kB / 3.901 GB, free: 37.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007581/13.52, allocations: 102.9 kB / 3.901 GB, free: 37.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/13.52, allocations: 5.375 kB / 3.901 GB, free: 37.57 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007693/13.52, allocations: 2.54 MB / 3.904 GB, free: 37.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.833e-05/13.52, allocations: 11.69 kB / 3.904 GB, free: 37.44 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009049/13.52, allocations: 198.7 kB / 3.904 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003877/13.53, allocations: 467.9 kB / 3.904 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/13.53, allocations: 1.88 MB / 3.906 GB, free: 35.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003546/13.53, allocations: 255 kB / 3.906 GB, free: 35.85 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005531/13.53, allocations: 100.2 kB / 3.907 GB, free: 35.85 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008631/13.53, allocations: 289.4 kB / 3.907 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007316/13.54, allocations: 197.2 kB / 3.907 GB, free: 35.58 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01497/13.55, allocations: 7.343 MB / 3.914 GB, free: 34.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.78e-05/13.55, allocations: 84.62 kB / 3.914 GB, free: 34.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/13.55, allocations: 0 / 3.914 GB, free: 34.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01181/13.56, allocations: 6.419 MB / 3.921 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02355/13.59, allocations: 11.06 MB / 3.931 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/13.59, allocations: 6.844 kB / 3.931 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002857/13.59, allocations: 357.7 kB / 3.932 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004082/13.59, allocations: 1.304 MB / 3.933 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005083/13.59, allocations: 67.78 kB / 3.933 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00288/13.6, allocations: 3.199 MB / 3.936 GB, free: 30.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/13.6, allocations: 5.719 kB / 3.936 GB, free: 30.67 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/13.61, allocations: 7.153 MB / 3.943 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002274/13.61, allocations: 0.7052 MB / 3.944 GB, free: 29.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007072/13.61, allocations: 59.08 kB / 3.944 GB, free: 29.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002777/13.62, allocations: 186.9 kB / 3.944 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004402/13.62, allocations: 155.5 kB / 3.944 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/13.62, allocations: 72.33 kB / 3.944 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002327/13.62, allocations: 1.065 MB / 3.945 GB, free: 28.92 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.41e-07/13.62, allocations: 1.125 kB / 3.945 GB, free: 28.92 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01243/13.63, allocations: 2.556 MB / 3.948 GB, free: 28.81 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02953/13.66, allocations: 11.18 MB / 3.959 GB, free: 25.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01156/13.67, allocations: 4.6 MB / 3.963 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.536e-05/13.67, allocations: 3.969 kB / 3.963 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005714/13.68, allocations: 2.438 MB / 3.966 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007871/13.69, allocations: 0.8456 MB / 3.966 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8194/14.51, allocations: 128.7 MB / 4.092 GB, free: 73.69 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003372/14.51, allocations: 2.136 MB / 4.094 GB, free: 72.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003031/14.51, allocations: 1.231 MB / 4.095 GB, free: 72.95 MB / 0.5417 GB Notification: Performance of SimCode: time 1.974e-06/14.51, allocations: 0 / 4.095 GB, free: 72.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.153/19.67, allocations: 122.3 MB / 4.215 GB, free: 54.24 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat