Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization.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.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestOverdeterminedInitial_DynamicPipeLumpedPressureInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.972/1.972, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004405, allocations: 15.92 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3584, allocations: 48.69 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.674/8.033, allocations: 2.553 GB / 2.877 GB, free: 96.39 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/8.033, allocations: 79.56 kB / 2.877 GB, free: 96.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.64/10.67, allocations: 484.2 MB / 3.35 GB, free: 34.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.228e-06/10.67, allocations: 0 / 3.35 GB, free: 34.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001753/10.67, allocations: 42.75 kB / 3.35 GB, free: 34.64 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.01534/10.69, allocations: 3.032 MB / 3.353 GB, free: 33.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/10.69, allocations: 10.88 kB / 3.353 GB, free: 33.54 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009613/10.69, allocations: 218.1 kB / 3.353 GB, free: 33.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006436/10.7, allocations: 0.5686 MB / 3.354 GB, free: 33.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006454/10.7, allocations: 1.483 MB / 3.355 GB, free: 33.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003397/10.7, allocations: 135.6 kB / 3.355 GB, free: 33.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008182/10.7, allocations: 145 kB / 3.355 GB, free: 33.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01043/10.71, allocations: 2.735 MB / 3.358 GB, free: 32.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.471e-05/10.71, allocations: 8 kB / 3.358 GB, free: 32.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003416/10.71, allocations: 65.88 kB / 3.358 GB, free: 32.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002154/10.71, allocations: 106.9 kB / 3.358 GB, free: 32.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/10.73, allocations: 2.699 MB / 3.361 GB, free: 32.62 MB / 442.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.02165/10.75, allocations: 10.91 MB / 3.372 GB, free: 26.17 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007186/10.75, allocations: 1.819 MB / 3.373 GB, free: 26.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2236/10.98, allocations: 61.64 MB / 3.433 GB, free: 23.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006237/10.98, allocations: 1.425 MB / 3.435 GB, free: 23.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 5.741e-06/10.98, allocations: 0 / 3.435 GB, free: 23.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=151): time 0.03478/11.02, allocations: 8.341 MB / 3.443 GB, free: 22.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002048/11.02, allocations: 284 kB / 3.443 GB, free: 21.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/11.02, allocations: 0.8976 MB / 3.444 GB, free: 21.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005158/11.02, allocations: 53.42 kB / 3.444 GB, free: 21.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006596/11.02, allocations: 0.6782 MB / 3.445 GB, free: 21.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000791/11.02, allocations: 0.5077 MB / 3.445 GB, free: 20.87 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/11.02, allocations: 36.03 kB / 3.445 GB, free: 20.87 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002155/11.02, allocations: 381.2 kB / 3.446 GB, free: 20.56 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003303/11.03, allocations: 1.013 MB / 3.447 GB, free: 20.55 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003897/11.03, allocations: 1.503 MB / 3.448 GB, free: 19.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.046/18.08, allocations: 0.5696 GB / 4.018 GB, free: 15.61 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-05/18.08, allocations: 4 kB / 4.018 GB, free: 15.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01069/18.09, allocations: 3.369 MB / 4.021 GB, free: 13.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001215/18.09, allocations: 5.659 MB / 4.027 GB, free: 7.363 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-05/18.09, allocations: 15.44 kB / 4.027 GB, free: 7.352 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.357/18.45, allocations: 2.573 MB / 4.029 GB, free: 79.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/18.45, allocations: 280.7 kB / 4.029 GB, free: 79.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009739/18.46, allocations: 3.263 MB / 4.033 GB, free: 79.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003425/18.46, allocations: 217.7 kB / 4.033 GB, free: 79.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004837/18.46, allocations: 89.11 kB / 4.033 GB, free: 79.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/18.46, allocations: 5.406 kB / 4.033 GB, free: 79.18 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01189/18.47, allocations: 3.245 MB / 4.036 GB, free: 79.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.037e-05/18.47, allocations: 19.88 kB / 4.036 GB, free: 79.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01361/18.49, allocations: 1.939 MB / 4.038 GB, free: 79.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002163/18.49, allocations: 292.8 kB / 4.038 GB, free: 79.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/18.5, allocations: 2.979 MB / 4.041 GB, free: 78.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003818/18.5, allocations: 213.9 kB / 4.041 GB, free: 78.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005004/18.51, allocations: 79.88 kB / 4.041 GB, free: 78.6 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 Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].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 (146): * Single equations (assignments): 145 * 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 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.002292/18.51, allocations: 0.6117 MB / 4.042 GB, free: 78.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006628/18.51, allocations: 135.1 kB / 4.042 GB, free: 78.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01768/18.53, allocations: 5.831 MB / 4.048 GB, free: 78.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.456e-05/18.53, allocations: 53 kB / 4.048 GB, free: 78.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/18.53, allocations: 5.703 kB / 4.048 GB, free: 78.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01287/18.54, allocations: 4.727 MB / 4.053 GB, free: 77.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02564/18.56, allocations: 8.179 MB / 4.061 GB, free: 76.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.101e-05/18.56, allocations: 0 / 4.061 GB, free: 76.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002567/18.57, allocations: 256.8 kB / 4.061 GB, free: 76.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008538/18.58, allocations: 1.284 MB / 4.062 GB, free: 76.69 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000421/18.58, allocations: 52.95 kB / 4.062 GB, free: 76.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003882/18.58, allocations: 2.187 MB / 4.064 GB, free: 76.14 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/18.58, allocations: 6.812 kB / 4.064 GB, free: 76.14 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01306/18.59, allocations: 5.792 MB / 4.07 GB, free: 75.47 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001868/18.6, allocations: 0.6162 MB / 4.071 GB, free: 75.26 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006351/18.6, allocations: 42.94 kB / 4.071 GB, free: 75.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002662/18.6, allocations: 180.5 kB / 4.071 GB, free: 75.26 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005573/18.6, allocations: 150.3 kB / 4.071 GB, free: 75.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/18.6, allocations: 55.47 kB / 4.071 GB, free: 75.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002077/18.6, allocations: 0.9599 MB / 4.072 GB, free: 75.14 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.01e-07/18.6, allocations: 0 / 4.072 GB, free: 75.14 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0111/18.61, allocations: 2.116 MB / 4.074 GB, free: 75.09 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 31 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].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 (124): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 1 * 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 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.02622/18.64, allocations: 8.821 MB / 4.083 GB, free: 73.23 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01366/18.65, allocations: 4.358 MB / 4.087 GB, free: 73.15 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/18.65, allocations: 0 / 4.087 GB, free: 73.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005101/18.66, allocations: 1.912 MB / 4.089 GB, free: 73.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006173/18.66, allocations: 0.6725 MB / 4.089 GB, free: 73.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2326/18.9, allocations: 72.18 MB / 4.16 GB, free: 51.42 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/18.9, allocations: 1.733 MB / 4.162 GB, free: 50 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/18.9, allocations: 0.8395 MB / 4.162 GB, free: 49.23 MB / 490.7 MB Notification: Performance of SimCode: time 1.724e-06/18.9, allocations: 0 / 4.162 GB, free: 49.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.751/23.65, allocations: 65.29 MB / 4.226 GB, free: 73.84 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization_res.mat does not exist to compare? outputFormat=mat