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.567/2.567, allocations: 234.9 MB / 250.5 MB, free: 9.676 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004389, allocations: 12 kB / 314.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3886/0.389, allocations: 54.85 MB / 369.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.045/8.434, allocations: 2.673 GB / 3.033 GB, free: 44.87 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/8.435, allocations: 81.5 kB / 3.033 GB, free: 44.83 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.294/12.73, allocations: 0.8006 GB / 3.834 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.226e-06/12.73, allocations: 0 / 3.834 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003275/12.73, allocations: 55.92 kB / 3.834 GB, free: 10.8 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02215/12.75, allocations: 3.92 MB / 3.838 GB, free: 6.805 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/12.75, allocations: 8.031 kB / 3.838 GB, free: 6.797 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001563/12.75, allocations: 274.8 kB / 3.838 GB, free: 6.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008721/12.76, allocations: 0.7815 MB / 3.839 GB, free: 5.734 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008896/12.77, allocations: 2.014 MB / 3.841 GB, free: 3.664 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003605/12.77, allocations: 159.4 kB / 3.841 GB, free: 3.508 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/12.77, allocations: 179.9 kB / 3.841 GB, free: 3.332 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.45/13.22, allocations: 3.333 MB / 3.845 GB, free: 35.33 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.235e-05/13.22, allocations: 7.281 kB / 3.845 GB, free: 35.33 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004724/13.22, allocations: 80.62 kB / 3.845 GB, free: 35.33 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004353/13.22, allocations: 145.5 kB / 3.845 GB, free: 35.32 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/13.24, allocations: 3.175 MB / 3.848 GB, free: 35.31 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.02593/13.26, allocations: 13.66 MB / 3.861 GB, free: 27.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007651/13.27, allocations: 2.037 MB / 3.863 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07269/13.34, allocations: 18.82 MB / 3.882 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008804/13.35, allocations: 1.596 MB / 3.883 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002021/13.35, allocations: 170.1 kB / 3.883 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 7.965e-06/13.35, allocations: 3.406 kB / 3.883 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.03885/13.39, allocations: 8.309 MB / 3.891 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000201/13.39, allocations: 256.3 kB / 3.892 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002703/13.4, allocations: 1.272 MB / 3.893 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006019/13.4, allocations: 54.61 kB / 3.893 GB, free: 29.57 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008889/13.4, allocations: 0.8313 MB / 3.894 GB, free: 29.24 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001018/13.4, allocations: 0.5576 MB / 3.894 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/13.4, allocations: 35.84 kB / 3.894 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002321/13.4, allocations: 391.2 kB / 3.895 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/13.4, allocations: 1.019 MB / 3.896 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003726/13.41, allocations: 1.449 MB / 3.897 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003785/13.41, allocations: 1.26 MB / 3.898 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.678e-05/13.41, allocations: 3.312 kB / 3.898 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01044/13.42, allocations: 3.003 MB / 3.901 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002008/13.42, allocations: 4.255 MB / 3.905 GB, free: 23.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.092e-05/13.42, allocations: 9.656 kB / 3.905 GB, free: 23.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004551/13.43, allocations: 0.5289 MB / 3.906 GB, free: 23.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0037/13.43, allocations: 457.3 kB / 3.906 GB, free: 23.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/13.43, allocations: 2.713 MB / 3.909 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00435/13.44, allocations: 260.6 kB / 3.909 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006706/13.44, allocations: 102.8 kB / 3.909 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/13.44, allocations: 5.312 kB / 3.909 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00897/13.45, allocations: 2.743 MB / 3.912 GB, free: 21.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.391e-05/13.45, allocations: 11 kB / 3.912 GB, free: 21.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/13.45, allocations: 209.3 kB / 3.912 GB, free: 21.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003824/13.45, allocations: 470.7 kB / 3.913 GB, free: 21.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/13.46, allocations: 1.876 MB / 3.915 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003399/13.46, allocations: 260.1 kB / 3.915 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004308/13.46, allocations: 94.73 kB / 3.915 GB, free: 19.66 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.002119/13.46, allocations: 0.711 MB / 3.916 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006613/13.46, allocations: 192.2 kB / 3.916 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01592/13.48, allocations: 7.443 MB / 3.923 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001079/13.48, allocations: 85.92 kB / 3.923 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/13.48, allocations: 0 / 3.923 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01361/13.49, allocations: 6.515 MB / 3.929 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02587/13.52, allocations: 11.2 MB / 3.94 GB, free: 16.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.353e-05/13.52, allocations: 3.625 kB / 3.94 GB, free: 16.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002813/13.52, allocations: 357.5 kB / 3.941 GB, free: 16.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004307/13.53, allocations: 1.2 MB / 3.942 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00056/13.53, allocations: 65.3 kB / 3.942 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/13.53, allocations: 3.222 MB / 3.945 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/13.53, allocations: 9.031 kB / 3.945 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/13.55, allocations: 7.461 MB / 3.952 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002292/13.55, allocations: 0.7107 MB / 3.953 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008258/13.55, allocations: 56.95 kB / 3.953 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003059/13.55, allocations: 178.7 kB / 3.953 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005555/13.55, allocations: 157 kB / 3.953 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/13.55, allocations: 73.19 kB / 3.954 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002437/13.56, allocations: 1.081 MB / 3.955 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.32e-07/13.56, allocations: 0 / 3.955 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01279/13.57, allocations: 2.563 MB / 3.957 GB, free: 12.6 MB / 0.5261 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) * 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.03262/13.6, allocations: 11.46 MB / 3.968 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01387/13.61, allocations: 4.869 MB / 3.973 GB, free: 25.26 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.394e-05/13.61, allocations: 0 / 3.973 GB, free: 25.26 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005892/13.62, allocations: 2.511 MB / 3.976 GB, free: 25.11 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007665/13.63, allocations: 0.8407 MB / 3.976 GB, free: 25.08 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8236/14.45, allocations: 139.4 MB / 4.112 GB, free: 52 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00216/14.45, allocations: 2.14 MB / 4.115 GB, free: 51.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002691/14.46, allocations: 1.229 MB / 4.116 GB, free: 51.21 MB / 0.5417 GB Notification: Performance of SimCode: time 1.763e-06/14.46, allocations: 0 / 4.116 GB, free: 51.21 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.243/19.7, allocations: 119.6 MB / 4.233 GB, free: 2.566 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