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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.426/2.426, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.187e-05/2.199e-05, allocations: 0 / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3525, allocations: 54.85 MB / 358.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.171/8.524, allocations: 2.656 GB / 3.005 GB, free: 105.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/8.524, allocations: 75.25 kB / 3.006 GB, free: 105.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.454/12.98, allocations: 0.8552 GB / 3.861 GB, free: 28.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.535e-06/12.98, allocations: 0 / 3.861 GB, free: 28.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003261/12.98, allocations: 63.8 kB / 3.861 GB, free: 28.48 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01812/13, allocations: 3.82 MB / 3.865 GB, free: 26.35 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/13, allocations: 10.09 kB / 3.865 GB, free: 26.35 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008535/13.01, allocations: 0.7821 MB / 3.865 GB, free: 26.15 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008814/13.01, allocations: 1.948 MB / 3.867 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/13.01, allocations: 81.59 kB / 3.867 GB, free: 25.24 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/13.02, allocations: 109.6 kB / 3.867 GB, free: 25.23 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00755/13.02, allocations: 2.338 MB / 3.87 GB, free: 24.42 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008889/13.03, allocations: 2.561 MB / 3.872 GB, free: 23.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.875e-05/13.03, allocations: 11.22 kB / 3.872 GB, free: 23.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005174/13.03, allocations: 4 kB / 3.872 GB, free: 23.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003042/13.03, allocations: 147.4 kB / 3.872 GB, free: 23.07 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.8222/13.86, allocations: 108.2 MB / 3.978 GB, free: 26.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003842/13.86, allocations: 1.412 MB / 3.979 GB, free: 26.28 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/13.86, allocations: 0.874 MB / 3.98 GB, free: 26.27 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0554/13.92, allocations: 17.53 MB / 3.997 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002714/13.92, allocations: 1.103 MB / 3.998 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001676/13.92, allocations: 141.4 kB / 3.999 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=136): time 1.06e-05/13.92, allocations: 0 / 3.999 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=148): time 0.03204/13.95, allocations: 7.192 MB / 4.006 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000216/13.95, allocations: 361.6 kB / 4.006 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002407/13.96, allocations: 1.069 MB / 4.007 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004944/13.96, allocations: 28.73 kB / 4.007 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001154/13.96, allocations: 0.913 MB / 4.008 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009474/13.96, allocations: 490.4 kB / 4.008 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002398/13.96, allocations: 0 / 4.008 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002247/13.96, allocations: 383.2 kB / 4.009 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/13.96, allocations: 0.8954 MB / 4.01 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002642/13.96, allocations: 1.291 MB / 4.011 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01922/13.98, allocations: 2.667 MB / 4.014 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.64e-05/13.98, allocations: 6.438 kB / 4.014 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02507/14.01, allocations: 4.23 MB / 4.018 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001984/14.01, allocations: 4.257 MB / 4.022 GB, free: 22.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-05/14.01, allocations: 9.906 kB / 4.022 GB, free: 22.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00389/14.01, allocations: 0.5258 MB / 4.022 GB, free: 22.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00365/14.02, allocations: 439.6 kB / 4.023 GB, free: 22.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004063/14.02, allocations: 2.937 MB / 4.026 GB, free: 20.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004051/14.03, allocations: 240.9 kB / 4.026 GB, free: 20.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006807/14.03, allocations: 94.66 kB / 4.026 GB, free: 20.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/14.03, allocations: 3.562 kB / 4.026 GB, free: 20.21 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02252/14.05, allocations: 3.777 MB / 4.03 GB, free: 20.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.186e-05/14.05, allocations: 11.25 kB / 4.03 GB, free: 20.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006787/14.05, allocations: 189.5 kB / 4.03 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/14.05, allocations: 463.2 kB / 4.03 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/14.06, allocations: 1.894 MB / 4.032 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00313/14.06, allocations: 203.5 kB / 4.032 GB, free: 18.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005027/14.06, allocations: 91.8 kB / 4.032 GB, free: 18.48 MB / 0.5417 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete 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.0008695/14.06, allocations: 233.6 kB / 4.033 GB, free: 18.31 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009222/14.07, allocations: 2.338 MB / 4.035 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008409/14.07, allocations: 179.9 kB / 4.035 GB, free: 18.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01455/14.09, allocations: 6.293 MB / 4.041 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.673e-05/14.09, allocations: 64.84 kB / 4.041 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/14.09, allocations: 0 / 4.041 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01106/14.1, allocations: 5.315 MB / 4.046 GB, free: 16.76 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01943/14.12, allocations: 8.475 MB / 4.055 GB, free: 16.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.551e-05/14.12, allocations: 2.938 kB / 4.055 GB, free: 16.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002483/14.12, allocations: 286.5 kB / 4.055 GB, free: 16.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003949/14.12, allocations: 1.502 MB / 4.057 GB, free: 16.15 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004847/14.12, allocations: 33.94 kB / 4.057 GB, free: 16.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00452/14.13, allocations: 3.696 MB / 4.06 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/14.13, allocations: 4.156 kB / 4.06 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01429/14.14, allocations: 6.371 MB / 4.066 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002153/14.14, allocations: 0.6543 MB / 4.067 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007598/14.15, allocations: 18.31 kB / 4.067 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002993/14.15, allocations: 146.3 kB / 4.067 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000516/14.15, allocations: 122.2 kB / 4.067 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002367/14.15, allocations: 68.58 kB / 4.067 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002382/14.15, allocations: 0.9894 MB / 4.068 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.72e-07/14.15, allocations: 0 / 4.068 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01315/14.16, allocations: 2.577 MB / 4.071 GB, free: 12.89 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (147): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.02932/14.19, allocations: 9.618 MB / 4.08 GB, free: 7.898 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01133/14.21, allocations: 4.264 MB / 4.084 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/14.21, allocations: 0 / 4.084 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004988/14.21, allocations: 1.985 MB / 4.086 GB, free: 4.375 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007779/14.22, allocations: 0.7914 MB / 4.087 GB, free: 3.945 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/14.24, allocations: 6.267 MB / 4.093 GB, free: 15.53 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002792/14.24, allocations: 2.044 MB / 4.095 GB, free: 13.99 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002694/14.25, allocations: 1.133 MB / 4.096 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of SimCode: time 2.274e-06/14.25, allocations: 0 / 4.096 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.615/19.86, allocations: 119.2 MB / 4.213 GB, free: 80.2 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