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.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.392/2.392, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.883e-05/3.921e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4235, allocations: 54.86 MB / 364.6 MB, free: 5.555 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.906/8.33, allocations: 2.664 GB / 3.02 GB, free: 94.25 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/8.33, allocations: 74.47 kB / 3.02 GB, free: 94.22 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.799/11.13, allocations: 0.489 GB / 3.509 GB, free: 38.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.475e-06/11.13, allocations: 0 / 3.509 GB, free: 38.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002168/11.13, allocations: 43.81 kB / 3.509 GB, free: 38.21 MB / 490.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.01652/11.15, allocations: 2.99 MB / 3.512 GB, free: 37.15 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/11.15, allocations: 11.09 kB / 3.512 GB, free: 37.15 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001283/11.15, allocations: 277.3 kB / 3.512 GB, free: 37.11 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007835/11.15, allocations: 0.7117 MB / 3.513 GB, free: 37 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006899/11.16, allocations: 1.587 MB / 3.514 GB, free: 36.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/11.16, allocations: 166.3 kB / 3.515 GB, free: 36.64 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/11.16, allocations: 177.5 kB / 3.515 GB, free: 36.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0118/11.18, allocations: 3.523 MB / 3.518 GB, free: 36.19 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.84e-05/11.18, allocations: 6.938 kB / 3.518 GB, free: 36.19 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000425/11.18, allocations: 80.03 kB / 3.518 GB, free: 36.19 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000251/11.18, allocations: 172.1 kB / 3.518 GB, free: 36.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/11.19, allocations: 3.331 MB / 3.522 GB, free: 36.17 MB / 490.7 MB 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 0.03108/11.22, allocations: 14.12 MB / 3.535 GB, free: 28.42 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007342/11.23, allocations: 2.155 MB / 3.538 GB, free: 28.28 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002742/11.23, allocations: 1.074 MB / 3.539 GB, free: 28.24 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2037/11.43, allocations: 63.64 MB / 3.601 GB, free: 20.78 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005845/11.44, allocations: 1.69 MB / 3.602 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 5.36e-06/11.44, allocations: 0 / 3.602 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02674/11.47, allocations: 8.158 MB / 3.61 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002073/11.47, allocations: 281 kB / 3.611 GB, free: 18.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002388/11.47, allocations: 1.174 MB / 3.612 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005775/11.47, allocations: 58.52 kB / 3.612 GB, free: 18.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007603/11.47, allocations: 0.8133 MB / 3.613 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008642/11.47, allocations: 0.6102 MB / 3.613 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/11.47, allocations: 41.41 kB / 3.613 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002429/11.47, allocations: 394.8 kB / 3.614 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002802/11.47, allocations: 1.146 MB / 3.615 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003184/11.48, allocations: 1.69 MB / 3.616 GB, free: 16.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003362/11.48, allocations: 1.377 MB / 3.618 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/11.48, allocations: 5.906 kB / 3.618 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009787/11.49, allocations: 3.901 MB / 3.622 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003198/11.49, allocations: 6.271 MB / 3.628 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.983e-05/11.49, allocations: 18.67 kB / 3.628 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02528/11.52, allocations: 3.443 MB / 3.631 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002445/11.52, allocations: 329.2 kB / 3.631 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00902/11.53, allocations: 3.816 MB / 3.635 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004285/11.53, allocations: 279.7 kB / 3.635 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000534/11.54, allocations: 113 kB / 3.635 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/11.54, allocations: 3.969 kB / 3.635 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0103/11.55, allocations: 3.575 MB / 3.639 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.774e-05/11.55, allocations: 15.34 kB / 3.639 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01376/11.56, allocations: 2.181 MB / 3.641 GB, free: 25.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002799/11.56, allocations: 375.6 kB / 3.641 GB, free: 25.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006403/11.57, allocations: 3.1 MB / 3.645 GB, free: 24.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003618/11.57, allocations: 265 kB / 3.645 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000767/11.57, allocations: 105.3 kB / 3.645 GB, free: 24.46 MB / 0.5261 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: 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 () * 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.001402/11.57, allocations: 225.6 kB / 3.645 GB, free: 24.35 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008402/11.58, allocations: 169.3 kB / 3.645 GB, free: 24.26 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01469/11.59, allocations: 6.76 MB / 3.652 GB, free: 22.84 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/11.59, allocations: 71.03 kB / 3.652 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/11.59, allocations: 3.969 kB / 3.652 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01116/11.6, allocations: 5.45 MB / 3.657 GB, free: 20.28 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/11.62, allocations: 9.468 MB / 3.666 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-05/11.62, allocations: 4 kB / 3.666 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003909/11.63, allocations: 436.2 kB / 3.667 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002469/11.63, allocations: 444.2 kB / 3.667 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006491/11.63, allocations: 63.59 kB / 3.667 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002904/11.63, allocations: 3.213 MB / 3.671 GB, free: 9.828 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/11.63, allocations: 4.094 kB / 3.671 GB, free: 9.824 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01613/11.65, allocations: 6.745 MB / 3.677 GB, free: 3.703 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002826/11.65, allocations: 0.7656 MB / 3.678 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009651/11.65, allocations: 55.42 kB / 3.678 GB, free: 2.984 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003749/11.66, allocations: 214.2 kB / 3.678 GB, free: 2.828 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009465/11.66, allocations: 184.3 kB / 3.678 GB, free: 2.723 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003393/11.66, allocations: 62.84 kB / 3.678 GB, free: 2.668 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003346/11.66, allocations: 1.222 MB / 3.68 GB, free: 1.559 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.152e-06/11.66, allocations: 0 / 3.68 GB, free: 1.559 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.4113/12.07, allocations: 2.434 MB / 3.682 GB, free: 82.79 MB / 0.5261 GB 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 () * 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.02954/12.1, allocations: 9.551 MB / 3.691 GB, free: 81.49 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01652/12.12, allocations: 5.079 MB / 3.696 GB, free: 81.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/12.12, allocations: 1.25 kB / 3.696 GB, free: 81.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006183/12.13, allocations: 2.276 MB / 3.698 GB, free: 81.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00765/12.13, allocations: 0.7895 MB / 3.699 GB, free: 81.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/12.16, allocations: 6.889 MB / 3.706 GB, free: 80.28 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002062/12.16, allocations: 2.042 MB / 3.708 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002587/12.16, allocations: 1.155 MB / 3.709 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.733e-06/12.16, allocations: 3.281 kB / 3.709 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.98/17.14, allocations: 99.89 MB / 3.807 GB, free: 70.35 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat