Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.906/1.906, allocations: 209.2 MB / 224.8 MB, free: 0.6016 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008607/0.0008609, allocations: 19.98 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3524, allocations: 48.7 MB / 331.4 MB, free: 6.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.497/7.85, allocations: 2.553 GB / 2.877 GB, free: 96.09 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/7.85, allocations: 83.53 kB / 2.877 GB, free: 96.09 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.644/10.49, allocations: 490.9 MB / 3.356 GB, free: 45.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.026e-06/10.49, allocations: 1.406 kB / 3.356 GB, free: 45.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002402/10.49, allocations: 43.55 kB / 3.356 GB, free: 45.82 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01774/10.51, allocations: 3.134 MB / 3.359 GB, free: 44.68 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/10.51, allocations: 12.03 kB / 3.359 GB, free: 44.68 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001371/10.51, allocations: 284.2 kB / 3.36 GB, free: 44.64 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007416/10.52, allocations: 0.6908 MB / 3.36 GB, free: 44.53 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006248/10.53, allocations: 1.592 MB / 3.362 GB, free: 44.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/10.53, allocations: 170.3 kB / 3.362 GB, free: 44.16 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007277/10.53, allocations: 173.8 kB / 3.362 GB, free: 44.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01129/10.54, allocations: 3.578 MB / 3.366 GB, free: 43.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.758e-05/10.54, allocations: 14 kB / 3.366 GB, free: 43.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004086/10.54, allocations: 84.3 kB / 3.366 GB, free: 43.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002323/10.54, allocations: 175.2 kB / 3.366 GB, free: 43.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01275/10.55, allocations: 3.512 MB / 3.369 GB, free: 43.68 MB / 458.7 MB 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.02785/10.58, allocations: 14.13 MB / 3.383 GB, free: 35.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008424/10.59, allocations: 2.27 MB / 3.385 GB, free: 35.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2006/10.79, allocations: 63.35 MB / 3.447 GB, free: 28.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006652/10.8, allocations: 1.731 MB / 3.449 GB, free: 28.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=154): time 5.69e-06/10.8, allocations: 0 / 3.449 GB, free: 28.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=174): time 0.03464/10.83, allocations: 9.457 MB / 3.458 GB, free: 26.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001948/10.83, allocations: 288.2 kB / 3.459 GB, free: 26.26 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002409/10.83, allocations: 1.187 MB / 3.46 GB, free: 26.09 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005875/10.84, allocations: 61.83 kB / 3.46 GB, free: 26.06 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008368/10.84, allocations: 0.8101 MB / 3.461 GB, free: 25.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009375/10.84, allocations: 0.5993 MB / 3.461 GB, free: 25.22 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/10.84, allocations: 44.31 kB / 3.461 GB, free: 25.22 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002542/10.84, allocations: 391.9 kB / 3.462 GB, free: 24.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003912/10.84, allocations: 1.286 MB / 3.463 GB, free: 24.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004429/10.85, allocations: 1.832 MB / 3.465 GB, free: 24.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004596/10.85, allocations: 1.511 MB / 3.466 GB, free: 24.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.969e-05/10.85, allocations: 8.453 kB / 3.466 GB, free: 24.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0131/10.86, allocations: 4.26 MB / 3.47 GB, free: 24.03 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003055/10.87, allocations: 6.271 MB / 3.476 GB, free: 17.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.5e-05/10.87, allocations: 16.44 kB / 3.476 GB, free: 17.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02701/10.89, allocations: 3.652 MB / 3.48 GB, free: 17.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/10.9, allocations: 332.3 kB / 3.48 GB, free: 17.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/10.91, allocations: 4.066 MB / 3.484 GB, free: 16.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003992/10.91, allocations: 275.8 kB / 3.484 GB, free: 16.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003978/10.91, allocations: 102.2 kB / 3.485 GB, free: 16.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/10.91, allocations: 7.031 kB / 3.485 GB, free: 16.7 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01278/10.92, allocations: 3.932 MB / 3.488 GB, free: 16.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.807e-05/10.92, allocations: 20.25 kB / 3.488 GB, free: 16.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01537/10.94, allocations: 2.36 MB / 3.491 GB, free: 16.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002701/10.94, allocations: 359.3 kB / 3.491 GB, free: 16.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009279/10.95, allocations: 3.334 MB / 3.494 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003341/10.96, allocations: 271.2 kB / 3.495 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003682/10.96, allocations: 100.2 kB / 3.495 GB, free: 15.91 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.002048/10.96, allocations: 0.6923 MB / 3.495 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005563/10.96, allocations: 166.6 kB / 3.496 GB, free: 15.63 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01524/10.97, allocations: 6.86 MB / 3.502 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.765e-05/10.97, allocations: 87.58 kB / 3.502 GB, free: 14.28 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/10.97, allocations: 0 / 3.502 GB, free: 14.28 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01174/10.99, allocations: 5.499 MB / 3.508 GB, free: 9.301 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02249/11.01, allocations: 9.563 MB / 3.517 GB, free: 1.281 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-05/11.01, allocations: 7.281 kB / 3.517 GB, free: 1.277 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003851/11.01, allocations: 438.8 kB / 3.517 GB, free: 0.9414 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003014/11.02, allocations: 480.5 kB / 3.518 GB, free: 0.5781 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006031/11.02, allocations: 66.59 kB / 3.518 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.452/11.47, allocations: 3.209 MB / 3.521 GB, free: 71.59 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/11.47, allocations: 2.312 kB / 3.521 GB, free: 71.59 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02889/11.5, allocations: 7.125 MB / 3.528 GB, free: 71.15 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003596/11.5, allocations: 0.7722 MB / 3.529 GB, free: 71.06 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001496/11.5, allocations: 52.45 kB / 3.529 GB, free: 71.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005297/11.51, allocations: 209.8 kB / 3.529 GB, free: 71.06 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00138/11.51, allocations: 180.1 kB / 3.529 GB, free: 71.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006025/11.51, allocations: 69.92 kB / 3.529 GB, free: 71.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005029/11.51, allocations: 1.24 MB / 3.531 GB, free: 70.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.303e-06/11.51, allocations: 0 / 3.531 GB, free: 70.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0199/11.53, allocations: 2.351 MB / 3.533 GB, free: 70.95 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04513/11.58, allocations: 9.938 MB / 3.543 GB, free: 69.51 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02663/11.61, allocations: 5.481 MB / 3.548 GB, free: 69.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/11.61, allocations: 0 / 3.548 GB, free: 69.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008868/11.62, allocations: 2.367 MB / 3.55 GB, free: 69.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0107/11.63, allocations: 0.7795 MB / 3.551 GB, free: 69.36 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04124/11.67, allocations: 21.28 MB / 3.572 GB, free: 54.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004071/11.67, allocations: 2.05 MB / 3.574 GB, free: 53.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004169/11.68, allocations: 1.154 MB / 3.575 GB, free: 53.58 MB / 490.7 MB Notification: Performance of SimCode: time 2.164e-06/11.68, allocations: 0 / 3.575 GB, free: 53.58 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.809/16.49, allocations: 97.25 MB / 3.67 GB, free: 32.42 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat