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.LumpedPipeInitialization.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.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.27/2.27, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/2.003e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3345, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.725/8.059, allocations: 2.652 GB / 3.001 GB, free: 99.12 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/8.06, allocations: 78.45 kB / 3.001 GB, free: 99.09 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.086/12.15, allocations: 0.7337 GB / 3.735 GB, free: 38.93 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.415e-06/12.15, allocations: 0 / 3.735 GB, free: 38.93 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001662/12.15, allocations: 33.77 kB / 3.735 GB, free: 38.93 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.0136/12.16, allocations: 2.767 MB / 3.738 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/12.16, allocations: 10.92 kB / 3.738 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005199/12.16, allocations: 477.9 kB / 3.738 GB, free: 37.54 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004697/12.17, allocations: 1.125 MB / 3.739 GB, free: 37.21 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/12.17, allocations: 114.5 kB / 3.74 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006236/12.17, allocations: 55.59 kB / 3.74 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004524/12.18, allocations: 1.339 MB / 3.741 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003934/12.18, allocations: 1.458 MB / 3.742 GB, free: 36.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.048e-05/12.18, allocations: 17.81 kB / 3.742 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/12.18, allocations: 6.281 kB / 3.742 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/12.18, allocations: 83.16 kB / 3.742 GB, free: 36.79 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 1.001/13.18, allocations: 135.2 MB / 3.874 GB, free: 71.93 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003306/13.18, allocations: 0.9173 MB / 3.875 GB, free: 71.71 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/13.19, allocations: 379.9 kB / 3.876 GB, free: 71.7 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06467/13.25, allocations: 16.69 MB / 3.892 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001651/13.25, allocations: 0.4959 MB / 3.893 GB, free: 61.38 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=66): time 5.34e-06/13.25, allocations: 0 / 3.893 GB, free: 61.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=70): time 0.01929/13.27, allocations: 3.108 MB / 3.896 GB, free: 60.74 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/13.27, allocations: 347.4 kB / 3.896 GB, free: 60.33 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002404/13.27, allocations: 0.8368 MB / 3.897 GB, free: 60.18 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000304/13.27, allocations: 25.7 kB / 3.897 GB, free: 60.15 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007705/13.28, allocations: 0.6386 MB / 3.897 GB, free: 59.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/13.28, allocations: 245.9 kB / 3.898 GB, free: 59.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/13.28, allocations: 0 / 3.898 GB, free: 59.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001532/13.28, allocations: 363.1 kB / 3.898 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001568/13.28, allocations: 465.4 kB / 3.898 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002012/13.28, allocations: 0.9143 MB / 3.899 GB, free: 58.84 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01646/13.3, allocations: 1.654 MB / 3.901 GB, free: 58.83 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-05/13.3, allocations: 6.125 kB / 3.901 GB, free: 58.83 MB / 0.5417 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.02059/13.32, allocations: 2.627 MB / 3.903 GB, free: 58.75 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001664/13.32, allocations: 5.402 MB / 3.909 GB, free: 53.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-05/13.32, allocations: 18.61 kB / 3.909 GB, free: 53.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007308/13.33, allocations: 0.7066 MB / 3.909 GB, free: 53.13 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002325/13.33, allocations: 248.5 kB / 3.91 GB, free: 53.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005322/13.33, allocations: 1.623 MB / 3.911 GB, free: 52.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/13.34, allocations: 120.5 kB / 3.911 GB, free: 52.58 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/13.34, allocations: 71 kB / 3.911 GB, free: 52.58 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/13.34, allocations: 4.594 kB / 3.911 GB, free: 52.58 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02103/13.36, allocations: 2.332 MB / 3.914 GB, free: 52.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.366e-05/13.36, allocations: 11.31 kB / 3.914 GB, free: 52.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/13.36, allocations: 328.8 kB / 3.914 GB, free: 52.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/13.36, allocations: 280 kB / 3.914 GB, free: 52.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002502/13.37, allocations: 1.043 MB / 3.915 GB, free: 52.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/13.37, allocations: 107.2 kB / 3.915 GB, free: 52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003336/13.37, allocations: 71.78 kB / 3.916 GB, free: 52 MB / 0.5417 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0007132/13.37, allocations: 165.8 kB / 3.916 GB, free: 51.89 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006174/13.38, allocations: 1.04 MB / 3.917 GB, free: 51.78 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006246/13.38, allocations: 114.2 kB / 3.917 GB, free: 51.72 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009179/13.39, allocations: 2.889 MB / 3.92 GB, free: 51.49 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.905e-05/13.39, allocations: 33.41 kB / 3.92 GB, free: 51.49 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/13.39, allocations: 0 / 3.92 GB, free: 51.49 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.968e-05/13.39, allocations: 14.23 kB / 3.92 GB, free: 51.48 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/13.4, allocations: 4.569 MB / 3.924 GB, free: 50.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/13.4, allocations: 3.953 kB / 3.924 GB, free: 50.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/13.4, allocations: 128.7 kB / 3.924 GB, free: 50.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01076/13.41, allocations: 1.524 MB / 3.926 GB, free: 50.76 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002587/13.41, allocations: 14.47 kB / 3.926 GB, free: 50.76 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004175/13.42, allocations: 2.271 MB / 3.928 GB, free: 49.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/13.42, allocations: 0 / 3.928 GB, free: 49.69 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009915/13.43, allocations: 3.318 MB / 3.931 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/13.43, allocations: 348.4 kB / 3.932 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006424/13.43, allocations: 0 / 3.932 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002574/13.43, allocations: 79.02 kB / 3.932 GB, free: 49.12 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003646/13.43, allocations: 60.34 kB / 3.932 GB, free: 49.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/13.43, allocations: 32.59 kB / 3.932 GB, free: 49.12 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001934/13.44, allocations: 0.6041 MB / 3.932 GB, free: 49.01 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.483e-06/13.44, allocations: 0 / 3.932 GB, free: 49.01 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01342/13.45, allocations: 1.92 MB / 3.934 GB, free: 48.94 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02815/13.48, allocations: 6.061 MB / 3.94 GB, free: 47.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008209/13.49, allocations: 2.053 MB / 3.942 GB, free: 47.56 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/13.49, allocations: 0 / 3.942 GB, free: 47.56 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00251/13.49, allocations: 0.8112 MB / 3.943 GB, free: 47.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006105/13.49, allocations: 460.2 kB / 3.943 GB, free: 47.54 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01617/13.51, allocations: 3.218 MB / 3.946 GB, free: 46.84 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001418/13.51, allocations: 1.336 MB / 3.948 GB, free: 46.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/13.51, allocations: 0.5652 MB / 3.948 GB, free: 46.12 MB / 0.5417 GB Notification: Performance of SimCode: time 2.003e-06/13.51, allocations: 0 / 3.948 GB, free: 46.12 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.582/18.1, allocations: 61.79 MB / 4.009 GB, free: 41.02 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat