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.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.479/2.479, allocations: 234.9 MB / 250.5 MB, free: 9.668 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004512/0.0004511, allocations: 8 kB / 314.5 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3842/0.3847, allocations: 54.86 MB / 369.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.18/8.564, allocations: 2.656 GB / 3.017 GB, free: 61.46 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/8.565, allocations: 87.36 kB / 3.017 GB, free: 61.42 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.793/13.36, allocations: 0.8648 GB / 3.882 GB, free: 35.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.905e-06/13.36, allocations: 0 / 3.882 GB, free: 35.93 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003149/13.36, allocations: 67.78 kB / 3.882 GB, free: 35.92 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01889/13.38, allocations: 4.09 MB / 3.886 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/13.38, allocations: 7.5 kB / 3.886 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001355/13.38, allocations: 276.7 kB / 3.886 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008121/13.39, allocations: 0.7831 MB / 3.887 GB, free: 33.92 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007684/13.39, allocations: 1.977 MB / 3.889 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002811/13.39, allocations: 159 kB / 3.889 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000805/13.4, allocations: 179.2 kB / 3.889 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/13.41, allocations: 3.289 MB / 3.893 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.454e-05/13.41, allocations: 7.094 kB / 3.893 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004439/13.41, allocations: 83.06 kB / 3.893 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002876/13.41, allocations: 154.4 kB / 3.893 GB, free: 33.01 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0116/13.42, allocations: 3.016 MB / 3.896 GB, free: 33 MB / 0.5105 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.0285/13.45, allocations: 14.07 MB / 3.91 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007819/13.46, allocations: 2.022 MB / 3.912 GB, free: 24.47 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05709/13.51, allocations: 18.89 MB / 3.93 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006441/13.52, allocations: 1.55 MB / 3.931 GB, free: 28.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001983/13.52, allocations: 166.6 kB / 3.932 GB, free: 28.44 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 9.418e-06/13.52, allocations: 0 / 3.932 GB, free: 28.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.0374/13.56, allocations: 8.194 MB / 3.94 GB, free: 27.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001893/13.56, allocations: 263.7 kB / 3.94 GB, free: 26.92 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003176/13.56, allocations: 1.35 MB / 3.941 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005747/13.56, allocations: 53.3 kB / 3.941 GB, free: 26.72 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001064/13.56, allocations: 0.8423 MB / 3.942 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001023/13.56, allocations: 0.5276 MB / 3.943 GB, free: 25.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/13.57, allocations: 42.19 kB / 3.943 GB, free: 25.96 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00024/13.57, allocations: 381 kB / 3.943 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003389/13.57, allocations: 1.012 MB / 3.944 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003911/13.57, allocations: 1.428 MB / 3.945 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003916/13.58, allocations: 1.25 MB / 3.947 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.768e-05/13.58, allocations: 3.969 kB / 3.947 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01092/13.59, allocations: 3.016 MB / 3.95 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001733/13.59, allocations: 4.253 MB / 3.954 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.255e-05/13.59, allocations: 9.969 kB / 3.954 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005152/13.59, allocations: 0.6108 MB / 3.954 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003575/13.6, allocations: 437.2 kB / 3.955 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003416/13.6, allocations: 2.834 MB / 3.958 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00386/13.61, allocations: 237.1 kB / 3.958 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006118/13.61, allocations: 93.09 kB / 3.958 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/13.61, allocations: 6.406 kB / 3.958 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009753/13.62, allocations: 2.723 MB / 3.96 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-05/13.62, allocations: 12.31 kB / 3.96 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/13.62, allocations: 207.3 kB / 3.961 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/13.62, allocations: 462.8 kB / 3.961 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/13.62, allocations: 1.876 MB / 3.963 GB, free: 16.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002936/13.63, allocations: 230.9 kB / 3.963 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003019/13.63, allocations: 96.27 kB / 3.963 GB, free: 16.64 MB / 0.5261 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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_b.phase,pipe2.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 (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.002089/13.63, allocations: 0.705 MB / 3.964 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006389/13.63, allocations: 196 kB / 3.964 GB, free: 16.28 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01569/13.64, allocations: 7.435 MB / 3.971 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.464e-05/13.64, allocations: 84.72 kB / 3.971 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/13.64, allocations: 0 / 3.971 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01296/13.66, allocations: 6.514 MB / 3.978 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02155/13.68, allocations: 10.33 MB / 3.988 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.549e-05/13.68, allocations: 0 / 3.988 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002675/13.68, allocations: 332.2 kB / 3.988 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004921/13.69, allocations: 1.369 MB / 3.99 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006043/13.69, allocations: 58.77 kB / 3.99 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003924/13.69, allocations: 3.473 MB / 3.993 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/13.69, allocations: 0 / 3.993 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01568/13.71, allocations: 7.229 MB / 4 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002486/13.71, allocations: 0.7146 MB / 4.001 GB, free: 7.371 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009514/13.71, allocations: 48.03 kB / 4.001 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003449/13.71, allocations: 180.3 kB / 4.001 GB, free: 7.305 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007091/13.72, allocations: 130 kB / 4.001 GB, free: 7.289 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002851/13.72, allocations: 70.94 kB / 4.001 GB, free: 7.273 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002944/13.72, allocations: 1.142 MB / 4.002 GB, free: 6.832 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.92e-07/13.72, allocations: 0 / 4.002 GB, free: 6.832 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01326/13.73, allocations: 2.703 MB / 4.005 GB, free: 6.25 MB / 0.5261 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,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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 138 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03073/13.76, allocations: 10.06 MB / 4.015 GB, free: 2.152 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01552/13.78, allocations: 4.88 MB / 4.02 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/13.78, allocations: 4.125 kB / 4.02 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006044/13.78, allocations: 2.309 MB / 4.022 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008307/13.79, allocations: 0.8965 MB / 4.023 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.801/14.59, allocations: 139.4 MB / 4.159 GB, free: 41.39 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002316/14.6, allocations: 2.133 MB / 4.161 GB, free: 40.61 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002707/14.6, allocations: 1.232 MB / 4.162 GB, free: 40.61 MB / 0.5417 GB Notification: Performance of SimCode: time 1.443e-06/14.6, allocations: 0 / 4.162 GB, free: 40.61 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.662/20.26, allocations: 121.3 MB / 4.281 GB, free: 73.62 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat