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.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.332/2.332, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000456/0.000456, allocations: 23.98 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3628, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.057/8.42, allocations: 2.673 GB / 3.034 GB, free: 16.76 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/8.42, allocations: 83.7 kB / 3.034 GB, free: 16.71 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.086/13.51, allocations: 0.8701 GB / 3.904 GB, free: 36.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.224e-06/13.51, allocations: 0 / 3.904 GB, free: 36.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003032/13.51, allocations: 60.62 kB / 3.904 GB, free: 36.49 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.02007/13.53, allocations: 4.024 MB / 3.908 GB, free: 34.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/13.53, allocations: 10.28 kB / 3.908 GB, free: 34.64 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001577/13.53, allocations: 279.2 kB / 3.908 GB, free: 34.59 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008581/13.54, allocations: 0.7842 MB / 3.909 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00826/13.55, allocations: 1.992 MB / 3.911 GB, free: 34.03 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/13.55, allocations: 168.6 kB / 3.911 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/13.55, allocations: 179.8 kB / 3.912 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/13.56, allocations: 3.261 MB / 3.915 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-05/13.56, allocations: 10.56 kB / 3.915 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003938/13.56, allocations: 80.94 kB / 3.915 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00031/13.56, allocations: 148.1 kB / 3.915 GB, free: 33.53 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01187/13.57, allocations: 2.945 MB / 3.918 GB, free: 33.52 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.02751/13.6, allocations: 13.9 MB / 3.931 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007904/13.61, allocations: 2.028 MB / 3.933 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05705/13.66, allocations: 18.82 MB / 3.952 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006407/13.67, allocations: 1.593 MB / 3.953 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001849/13.67, allocations: 170.1 kB / 3.953 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 9.347e-06/13.67, allocations: 0 / 3.953 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.03748/13.71, allocations: 8.322 MB / 3.962 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000644/13.71, allocations: 255.5 kB / 3.962 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/13.71, allocations: 1.276 MB / 3.963 GB, free: 27.22 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006131/13.71, allocations: 69.14 kB / 3.963 GB, free: 27.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008966/13.71, allocations: 0.8436 MB / 3.964 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009644/13.72, allocations: 0.5557 MB / 3.964 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/13.72, allocations: 34 kB / 3.965 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002168/13.72, allocations: 383.8 kB / 3.965 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003082/13.72, allocations: 1.016 MB / 3.966 GB, free: 26.08 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003605/13.72, allocations: 1.454 MB / 3.967 GB, free: 25.63 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003724/13.73, allocations: 1.257 MB / 3.969 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.569e-05/13.73, allocations: 3.906 kB / 3.969 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01013/13.74, allocations: 3.002 MB / 3.971 GB, free: 25.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001722/13.74, allocations: 4.262 MB / 3.976 GB, free: 20.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.533e-05/13.74, allocations: 11.12 kB / 3.976 GB, free: 20.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004426/13.74, allocations: 0.5278 MB / 3.976 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00364/13.75, allocations: 453.9 kB / 3.977 GB, free: 20.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/13.75, allocations: 2.717 MB / 3.979 GB, free: 18.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004188/13.75, allocations: 257.3 kB / 3.979 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005104/13.75, allocations: 96.72 kB / 3.98 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/13.75, allocations: 10.42 kB / 3.98 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008216/13.76, allocations: 2.742 MB / 3.982 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-05/13.76, allocations: 12.47 kB / 3.982 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/13.76, allocations: 202.9 kB / 3.982 GB, free: 17.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00357/13.77, allocations: 471.5 kB / 3.983 GB, free: 17.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/13.77, allocations: 1.877 MB / 3.985 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003346/13.77, allocations: 269.2 kB / 3.985 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003283/13.77, allocations: 95.44 kB / 3.985 GB, free: 15.4 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 (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 () * Number of clocked 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.002108/13.78, allocations: 0.7172 MB / 3.986 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006817/13.78, allocations: 196 kB / 3.986 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01581/13.79, allocations: 7.436 MB / 3.993 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.699e-05/13.79, allocations: 79.39 kB / 3.993 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/13.79, allocations: 0 / 3.993 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01269/13.8, allocations: 6.517 MB / 4 GB, free: 8.371 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/13.83, allocations: 11.22 MB / 4.011 GB, free: 116 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-05/13.83, allocations: 12.03 kB / 4.011 GB, free: 108 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003132/13.84, allocations: 366.5 kB / 4.011 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004665/13.84, allocations: 1.175 MB / 4.012 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005401/13.84, allocations: 66.69 kB / 4.012 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00378/13.84, allocations: 3.204 MB / 4.015 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/13.85, allocations: 4 kB / 4.015 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01767/13.86, allocations: 7.461 MB / 4.023 GB, free: 4.594 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002396/13.87, allocations: 0.7064 MB / 4.023 GB, free: 3.957 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008226/13.87, allocations: 59.42 kB / 4.023 GB, free: 3.902 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003155/13.87, allocations: 189.9 kB / 4.024 GB, free: 3.758 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006252/13.87, allocations: 148.5 kB / 4.024 GB, free: 3.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002809/13.87, allocations: 79.5 kB / 4.024 GB, free: 3.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002776/13.87, allocations: 1.088 MB / 4.025 GB, free: 2.668 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.91e-07/13.87, allocations: 4 kB / 4.025 GB, free: 2.664 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01512/13.89, allocations: 2.6 MB / 4.027 GB, free: 124 kB / 0.5417 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,$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 (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.5653/14.45, allocations: 11.54 MB / 4.039 GB, free: 63.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01339/14.47, allocations: 4.861 MB / 4.043 GB, free: 63.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/14.47, allocations: 2.906 kB / 4.043 GB, free: 63.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005848/14.47, allocations: 2.512 MB / 4.046 GB, free: 63.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008187/14.48, allocations: 0.9084 MB / 4.047 GB, free: 63.01 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3874/14.87, allocations: 139.5 MB / 4.183 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003005/14.87, allocations: 2.138 MB / 4.185 GB, free: 35.29 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002875/14.87, allocations: 1.255 MB / 4.186 GB, free: 35.12 MB / 0.5417 GB Notification: Performance of SimCode: time 1.122e-06/14.87, allocations: 0 / 4.186 GB, free: 35.12 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.559/20.43, allocations: 120.9 MB / 4.304 GB, free: 58.28 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat