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/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.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.294/2.294, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006143/0.0006144, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3553, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.008/8.364, allocations: 2.656 GB / 3.017 GB, free: 34 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/8.364, allocations: 83.02 kB / 3.017 GB, free: 33.96 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719/13.08, allocations: 0.8037 GB / 3.82 GB, free: 37 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.495e-06/13.08, allocations: 0.9688 kB / 3.82 GB, free: 37 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004138/13.08, allocations: 71.16 kB / 3.82 GB, free: 37 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02399/13.11, allocations: 4.258 MB / 3.825 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/13.11, allocations: 9.781 kB / 3.825 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001723/13.11, allocations: 300.5 kB / 3.825 GB, free: 35.59 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009038/13.12, allocations: 0.8358 MB / 3.826 GB, free: 35.45 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008963/13.13, allocations: 2.184 MB / 3.828 GB, free: 35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003549/13.13, allocations: 182.6 kB / 3.828 GB, free: 34.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/13.13, allocations: 190.6 kB / 3.828 GB, free: 34.99 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/13.14, allocations: 3.715 MB / 3.832 GB, free: 34.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.38e-05/13.14, allocations: 10.97 kB / 3.832 GB, free: 34.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005757/13.14, allocations: 91.09 kB / 3.832 GB, free: 34.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003228/13.14, allocations: 161.5 kB / 3.832 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/13.16, allocations: 3.547 MB / 3.836 GB, free: 34.42 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.03036/13.19, allocations: 14.76 MB / 3.85 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008105/13.2, allocations: 2.197 MB / 3.852 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05691/13.25, allocations: 18.9 MB / 3.871 GB, free: 30 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006636/13.26, allocations: 1.669 MB / 3.872 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001858/13.26, allocations: 194.3 kB / 3.872 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 8.616e-06/13.26, allocations: 3.719 kB / 3.872 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.04059/13.3, allocations: 9.124 MB / 3.881 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002389/13.3, allocations: 412.4 kB / 3.882 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003294/13.31, allocations: 1.51 MB / 3.883 GB, free: 27.87 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006161/13.31, allocations: 59.14 kB / 3.883 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009889/13.31, allocations: 0.9201 MB / 3.884 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00101/13.31, allocations: 0.5896 MB / 3.885 GB, free: 27.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/13.31, allocations: 40.62 kB / 3.885 GB, free: 27.02 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002626/13.31, allocations: 389.2 kB / 3.885 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003622/13.31, allocations: 1.161 MB / 3.886 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004233/13.32, allocations: 1.631 MB / 3.888 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004249/13.32, allocations: 1.423 MB / 3.889 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.042e-05/13.32, allocations: 7.266 kB / 3.889 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01097/13.33, allocations: 3.398 MB / 3.893 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001796/13.33, allocations: 4.427 MB / 3.897 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.427e-05/13.33, allocations: 20.7 kB / 3.897 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00856/13.34, allocations: 0.9898 MB / 3.898 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003851/13.35, allocations: 466.9 kB / 3.898 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00419/13.35, allocations: 3.164 MB / 3.901 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004169/13.36, allocations: 237.7 kB / 3.902 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007528/13.36, allocations: 109.3 kB / 3.902 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/13.36, allocations: 3.781 kB / 3.902 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01046/13.37, allocations: 3.177 MB / 3.905 GB, free: 19.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.261e-05/13.37, allocations: 18.48 kB / 3.905 GB, free: 19.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002009/13.37, allocations: 349.8 kB / 3.905 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003918/13.37, allocations: 497.8 kB / 3.906 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005723/13.38, allocations: 4.102 MB / 3.91 GB, free: 16.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003148/13.38, allocations: 239.1 kB / 3.91 GB, free: 16.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003503/13.38, allocations: 105.2 kB / 3.91 GB, free: 16.15 MB / 0.5261 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,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) * Number of discrete states: 0 () * Number of clocked 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.002293/13.38, allocations: 0.7704 MB / 3.911 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007198/13.39, allocations: 211.4 kB / 3.911 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01666/13.4, allocations: 7.843 MB / 3.919 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/13.4, allocations: 79 kB / 3.919 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/13.4, allocations: 9.438 kB / 3.919 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01368/13.42, allocations: 6.873 MB / 3.925 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02278/13.44, allocations: 10.9 MB / 3.936 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.008e-05/13.44, allocations: 0 / 3.936 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002899/13.44, allocations: 339 kB / 3.936 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008043/13.45, allocations: 2.145 MB / 3.939 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006066/13.45, allocations: 65.53 kB / 3.939 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005125/13.46, allocations: 4.106 MB / 3.943 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/13.46, allocations: 3.969 kB / 3.943 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01776/13.47, allocations: 7.986 MB / 3.95 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002471/13.48, allocations: 0.7577 MB / 3.951 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009196/13.48, allocations: 53.86 kB / 3.951 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003316/13.48, allocations: 191.5 kB / 3.951 GB, free: 10.08 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006313/13.48, allocations: 141.5 kB / 3.951 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002847/13.48, allocations: 70.3 kB / 3.952 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002897/13.48, allocations: 1.253 MB / 3.953 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.81e-07/13.48, allocations: 0 / 3.953 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01423/13.5, allocations: 2.834 MB / 3.956 GB, free: 9.523 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.03334/13.53, allocations: 10.52 MB / 3.966 GB, free: 21.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01587/13.55, allocations: 5.591 MB / 3.971 GB, free: 19.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/13.55, allocations: 2.562 kB / 3.971 GB, free: 19.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005845/13.55, allocations: 2.428 MB / 3.974 GB, free: 18.63 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008182/13.56, allocations: 0.8904 MB / 3.975 GB, free: 18.45 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8196/14.38, allocations: 141.2 MB / 4.112 GB, free: 45.62 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002396/14.38, allocations: 2.249 MB / 4.115 GB, free: 44.84 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00281/14.39, allocations: 1.32 MB / 4.116 GB, free: 44.83 MB / 0.5417 GB Notification: Performance of SimCode: time 1.263e-06/14.39, allocations: 0 / 4.116 GB, free: 44.83 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.26/20.65, allocations: 128.2 MB / 4.241 GB, free: 74.78 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