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.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.517/2.517, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.279e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3711, allocations: 54.84 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.128/8.499, allocations: 2.655 GB / 3.005 GB, free: 95.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/8.5, allocations: 81.06 kB / 3.005 GB, free: 95.34 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.266/12.77, allocations: 0.7948 GB / 3.8 GB, free: 28.84 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.104e-06/12.77, allocations: 0 / 3.8 GB, free: 28.84 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003721/12.77, allocations: 61.41 kB / 3.8 GB, free: 28.83 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02039/12.79, allocations: 3.953 MB / 3.804 GB, free: 26.62 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/12.79, allocations: 11.56 kB / 3.804 GB, free: 26.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008889/12.8, allocations: 0.8335 MB / 3.804 GB, free: 26.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009127/12.8, allocations: 2.175 MB / 3.807 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/12.8, allocations: 89.78 kB / 3.807 GB, free: 25.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/12.81, allocations: 114.4 kB / 3.807 GB, free: 25.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008325/12.81, allocations: 2.873 MB / 3.81 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009128/12.82, allocations: 2.878 MB / 3.812 GB, free: 23.03 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-05/12.82, allocations: 7.594 kB / 3.812 GB, free: 23.03 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004561/12.82, allocations: 3.656 kB / 3.812 GB, free: 23.03 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000304/12.82, allocations: 169.4 kB / 3.813 GB, free: 23 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.8209/13.65, allocations: 108.9 MB / 3.919 GB, free: 30.44 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004098/13.65, allocations: 1.584 MB / 3.92 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002549/13.65, allocations: 0.9823 MB / 3.921 GB, free: 30.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0547/13.71, allocations: 17.54 MB / 3.939 GB, free: 18.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00316/13.71, allocations: 1.221 MB / 3.94 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001898/13.71, allocations: 163.1 kB / 3.94 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 1.213e-05/13.71, allocations: 3.906 kB / 3.94 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.03507/13.75, allocations: 7.906 MB / 3.948 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002836/13.75, allocations: 0.508 MB / 3.948 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/13.75, allocations: 1.198 MB / 3.949 GB, free: 16.34 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005841/13.75, allocations: 29.61 kB / 3.949 GB, free: 16.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001275/13.75, allocations: 0.9843 MB / 3.95 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001123/13.75, allocations: 0.5329 MB / 3.951 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003151/13.75, allocations: 0 / 3.951 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002614/13.75, allocations: 395 kB / 3.951 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002699/13.76, allocations: 1.04 MB / 3.952 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003226/13.76, allocations: 1.494 MB / 3.954 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02017/13.78, allocations: 2.855 MB / 3.956 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-05/13.78, allocations: 3.922 kB / 3.956 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02603/13.81, allocations: 4.602 MB / 3.961 GB, free: 14.53 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00226/13.81, allocations: 4.431 MB / 3.965 GB, free: 25.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/13.81, allocations: 15.83 kB / 3.965 GB, free: 25.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006541/13.82, allocations: 0.8055 MB / 3.966 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004078/13.82, allocations: 470.2 kB / 3.967 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005286/13.82, allocations: 3.331 MB / 3.97 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004448/13.83, allocations: 228.1 kB / 3.97 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008133/13.83, allocations: 103.3 kB / 3.97 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/13.83, allocations: 4.703 kB / 3.97 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02459/13.85, allocations: 4.205 MB / 3.974 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/13.85, allocations: 18.08 kB / 3.974 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/13.86, allocations: 335.1 kB / 3.975 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0041/13.86, allocations: 495.7 kB / 3.975 GB, free: 23.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005749/13.87, allocations: 3.985 MB / 3.979 GB, free: 20.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003453/13.87, allocations: 210.6 kB / 3.979 GB, free: 20.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006261/13.87, allocations: 101.8 kB / 3.979 GB, free: 20.75 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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_b.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0009815/13.87, allocations: 245.2 kB / 3.979 GB, free: 20.57 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01016/13.88, allocations: 2.628 MB / 3.982 GB, free: 20.38 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/13.88, allocations: 197 kB / 3.982 GB, free: 20.27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01554/13.9, allocations: 6.696 MB / 3.989 GB, free: 19.74 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001015/13.9, allocations: 77.83 kB / 3.989 GB, free: 19.74 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/13.9, allocations: 0 / 3.989 GB, free: 19.74 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01213/13.91, allocations: 5.653 MB / 3.994 GB, free: 19 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02159/13.93, allocations: 9.042 MB / 4.003 GB, free: 18.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.801e-05/13.93, allocations: 0 / 4.003 GB, free: 18.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002677/13.94, allocations: 296.4 kB / 4.003 GB, free: 18.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006611/13.94, allocations: 2.35 MB / 4.006 GB, free: 18.29 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005829/13.94, allocations: 35.11 kB / 4.006 GB, free: 18.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006178/13.95, allocations: 4.425 MB / 4.01 GB, free: 16.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/13.95, allocations: 6.969 kB / 4.01 GB, free: 16.17 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01632/13.97, allocations: 7.107 MB / 4.017 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002432/13.97, allocations: 0.6962 MB / 4.018 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008926/13.97, allocations: 20.64 kB / 4.018 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003044/13.97, allocations: 155 kB / 4.018 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005203/13.97, allocations: 124.8 kB / 4.018 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002384/13.97, allocations: 68.12 kB / 4.018 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002375/13.97, allocations: 1.076 MB / 4.019 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.31e-07/13.97, allocations: 6.297 kB / 4.019 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01401/13.99, allocations: 2.702 MB / 4.022 GB, free: 13.86 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03066/14.02, allocations: 10.05 MB / 4.032 GB, free: 7.555 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01333/14.03, allocations: 4.966 MB / 4.036 GB, free: 4.586 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/14.03, allocations: 0 / 4.036 GB, free: 4.586 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005559/14.04, allocations: 2.104 MB / 4.038 GB, free: 3.469 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007901/14.05, allocations: 0.7841 MB / 4.039 GB, free: 3.035 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/14.07, allocations: 6.733 MB / 4.046 GB, free: 14.26 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003218/14.07, allocations: 2.176 MB / 4.048 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003068/14.08, allocations: 1.249 MB / 4.049 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of SimCode: time 2.634e-06/14.08, allocations: 4.75 kB / 4.049 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.778/19.85, allocations: 126.1 MB / 4.172 GB, free: 76.27 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat