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/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.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.442/2.442, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.015e-05/2.026e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3704, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.016/8.386, allocations: 2.663 GB / 3.013 GB, free: 87.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/8.387, allocations: 75.91 kB / 3.013 GB, free: 87.16 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.807/11.19, allocations: 495.8 MB / 3.497 GB, free: 41.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.236e-06/11.19, allocations: 0 / 3.497 GB, free: 41.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001966/11.19, allocations: 49.22 kB / 3.497 GB, free: 41.34 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.01714/11.21, allocations: 2.982 MB / 3.5 GB, free: 40.27 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/11.21, allocations: 10.78 kB / 3.5 GB, free: 40.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007855/11.22, allocations: 0.7097 MB / 3.501 GB, free: 40.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006961/11.23, allocations: 1.573 MB / 3.502 GB, free: 39.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002868/11.23, allocations: 94.67 kB / 3.502 GB, free: 39.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001057/11.23, allocations: 103.2 kB / 3.502 GB, free: 39.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008126/11.24, allocations: 2.833 MB / 3.505 GB, free: 39.79 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008998/11.24, allocations: 2.872 MB / 3.508 GB, free: 39.35 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.36e-05/11.24, allocations: 12.28 kB / 3.508 GB, free: 39.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000432/11.25, allocations: 7.562 kB / 3.508 GB, free: 39.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002507/11.25, allocations: 169.2 kB / 3.508 GB, free: 39.35 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.511/11.76, allocations: 140.5 MB / 3.645 GB, free: 31.8 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006167/11.76, allocations: 1.582 MB / 3.647 GB, free: 31.75 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002446/11.77, allocations: 0.9826 MB / 3.648 GB, free: 31.73 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05219/11.82, allocations: 16.71 MB / 3.664 GB, free: 18.16 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002686/11.82, allocations: 1.143 MB / 3.665 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 4.609e-06/11.82, allocations: 0 / 3.665 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.028/11.85, allocations: 7.397 MB / 3.673 GB, free: 13 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001851/11.85, allocations: 227 kB / 3.673 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002078/11.85, allocations: 0.9253 MB / 3.674 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006369/11.85, allocations: 25.7 kB / 3.674 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001018/11.85, allocations: 0.8931 MB / 3.675 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001046/11.85, allocations: 0.529 MB / 3.675 GB, free: 11.04 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/11.85, allocations: 0 / 3.675 GB, free: 11.04 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003352/11.85, allocations: 396.8 kB / 3.675 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/11.86, allocations: 1.129 MB / 3.677 GB, free: 10.12 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003183/11.86, allocations: 1.671 MB / 3.678 GB, free: 8.855 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/11.87, allocations: 1.998 MB / 3.68 GB, free: 7.809 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-05/11.87, allocations: 4 kB / 3.68 GB, free: 7.805 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0164/11.89, allocations: 4.391 MB / 3.684 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.3872/12.27, allocations: 6.269 MB / 3.691 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.575e-05/12.27, allocations: 21.03 kB / 3.691 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/12.3, allocations: 2.738 MB / 3.693 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/12.3, allocations: 337.2 kB / 3.694 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/12.31, allocations: 4.238 MB / 3.698 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004379/12.31, allocations: 256.1 kB / 3.698 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005105/12.31, allocations: 103.9 kB / 3.698 GB, free: 114 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/12.31, allocations: 7.859 kB / 3.698 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01644/12.33, allocations: 3.869 MB / 3.702 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.598e-05/12.33, allocations: 18.77 kB / 3.702 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01256/12.34, allocations: 2.045 MB / 3.704 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002689/12.35, allocations: 369.1 kB / 3.704 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006574/12.35, allocations: 3.237 MB / 3.707 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/12.36, allocations: 231.4 kB / 3.708 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005674/12.36, allocations: 107.4 kB / 3.708 GB, free: 113.4 MB / 0.5573 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 ($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,source.medium.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.00082/12.36, allocations: 159 kB / 3.708 GB, free: 113.3 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008738/12.37, allocations: 2.467 MB / 3.71 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007731/12.37, allocations: 138.2 kB / 3.71 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/12.38, allocations: 5.645 MB / 3.716 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.879e-05/12.38, allocations: 67.73 kB / 3.716 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/12.38, allocations: 3.812 kB / 3.716 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.011/12.39, allocations: 5.117 MB / 3.721 GB, free: 112.1 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0193/12.41, allocations: 8.402 MB / 3.729 GB, free: 111.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/12.41, allocations: 3.531 kB / 3.729 GB, free: 111.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003518/12.42, allocations: 394 kB / 3.73 GB, free: 111.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001823/12.42, allocations: 424.1 kB / 3.73 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005138/12.42, allocations: 33.62 kB / 3.73 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/12.42, allocations: 3.351 MB / 3.733 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/12.42, allocations: 3.469 kB / 3.733 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01416/12.43, allocations: 6.243 MB / 3.739 GB, free: 108.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002388/12.44, allocations: 0.5653 MB / 3.74 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008206/12.44, allocations: 16.12 kB / 3.74 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00433/12.44, allocations: 170.3 kB / 3.74 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009948/12.44, allocations: 173.1 kB / 3.74 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002324/12.44, allocations: 56.73 kB / 3.74 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00141/12.44, allocations: 0.6649 MB / 3.741 GB, free: 108 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.21e-07/12.44, allocations: 1.969 kB / 3.741 GB, free: 108 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01166/12.46, allocations: 2.173 MB / 3.743 GB, free: 108 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$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,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.02746/12.48, allocations: 8.929 MB / 3.752 GB, free: 106.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01337/12.5, allocations: 4.819 MB / 3.757 GB, free: 106.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/12.5, allocations: 0 / 3.757 GB, free: 106.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005435/12.5, allocations: 2.065 MB / 3.759 GB, free: 106.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005648/12.51, allocations: 0.5601 MB / 3.759 GB, free: 106.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01953/12.53, allocations: 6.163 MB / 3.765 GB, free: 105.6 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/12.53, allocations: 1.91 MB / 3.767 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002362/12.53, allocations: 0.9999 MB / 3.768 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.603e-06/12.53, allocations: 0 / 3.768 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.781/17.31, allocations: 91.84 MB / 3.858 GB, free: 74.08 MB / 0.5573 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