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/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.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.352/2.352, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.02e-05/3.035e-05, allocations: 0 / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3928, allocations: 54.85 MB / 364.6 MB, free: 5.422 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.175/8.568, allocations: 2.652 GB / 3.008 GB, free: 105.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/8.568, allocations: 74.84 kB / 3.008 GB, free: 105.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.151/12.72, allocations: 0.7406 GB / 3.749 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.933e-06/12.72, allocations: 0 / 3.749 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001817/12.72, allocations: 30.91 kB / 3.749 GB, free: 35.47 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.01407/12.73, allocations: 2.767 MB / 3.752 GB, free: 34.16 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/12.73, allocations: 7.625 kB / 3.752 GB, free: 34.16 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006714/12.73, allocations: 158.3 kB / 3.752 GB, free: 34.12 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005004/12.74, allocations: 475.1 kB / 3.752 GB, free: 34.05 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004271/12.74, allocations: 1.129 MB / 3.754 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/12.74, allocations: 149.2 kB / 3.754 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004411/12.74, allocations: 97.75 kB / 3.754 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006344/12.75, allocations: 1.872 MB / 3.756 GB, free: 33.32 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.396e-05/12.75, allocations: 7.156 kB / 3.756 GB, free: 33.32 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/12.75, allocations: 46.69 kB / 3.756 GB, free: 33.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001734/12.75, allocations: 76.14 kB / 3.756 GB, free: 33.32 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006485/12.76, allocations: 1.719 MB / 3.757 GB, free: 33.31 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 0.01854/12.78, allocations: 8.543 MB / 3.766 GB, free: 28.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004463/12.78, allocations: 1.382 MB / 3.767 GB, free: 28.08 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/12.78, allocations: 467.2 kB / 3.768 GB, free: 28.04 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2063/12.99, allocations: 63.49 MB / 3.83 GB, free: 20.56 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00321/12.99, allocations: 0.8925 MB / 3.83 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=82): time 5.219e-06/12.99, allocations: 3.344 kB / 3.83 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of matching and sorting (n=86): time 0.01314/13.01, allocations: 3.744 MB / 3.834 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002562/13.01, allocations: 406.8 kB / 3.834 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/13.01, allocations: 0.9231 MB / 3.835 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003674/13.01, allocations: 46.58 kB / 3.835 GB, free: 18.62 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006306/13.01, allocations: 0.5603 MB / 3.836 GB, free: 18.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004964/13.01, allocations: 306.6 kB / 3.836 GB, free: 18.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/13.01, allocations: 22.47 kB / 3.836 GB, free: 18.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002523/13.01, allocations: 367.6 kB / 3.837 GB, free: 17.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/13.01, allocations: 474.9 kB / 3.837 GB, free: 17.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001796/13.01, allocations: 0.9389 MB / 3.838 GB, free: 17.23 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/13.02, allocations: 0.6319 MB / 3.839 GB, free: 17.19 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.721e-05/13.02, allocations: 6.375 kB / 3.839 GB, free: 17.19 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005409/13.02, allocations: 1.7 MB / 3.84 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002703/13.02, allocations: 5.411 MB / 3.846 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.885e-05/13.02, allocations: 13.28 kB / 3.846 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009863/13.03, allocations: 1.054 MB / 3.847 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001927/13.04, allocations: 250.3 kB / 3.847 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003272/13.04, allocations: 1.447 MB / 3.848 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002778/13.04, allocations: 127.8 kB / 3.848 GB, free: 10.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004598/13.04, allocations: 73.19 kB / 3.848 GB, free: 10.83 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/13.04, allocations: 3.5 kB / 3.848 GB, free: 10.83 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004728/13.05, allocations: 1.522 MB / 3.85 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.094e-05/13.05, allocations: 16.03 kB / 3.85 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002034/13.05, allocations: 335.1 kB / 3.85 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002221/13.05, allocations: 287.2 kB / 3.851 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/13.05, allocations: 1.001 MB / 3.852 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/13.06, allocations: 133.9 kB / 3.852 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/13.06, allocations: 67.05 kB / 3.852 GB, free: 10.22 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: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$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,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.0006185/13.06, allocations: 209.6 kB / 3.852 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004106/13.06, allocations: 124.3 kB / 3.852 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007451/13.06, allocations: 3.957 MB / 3.856 GB, free: 9.594 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.614e-05/13.06, allocations: 41.75 kB / 3.856 GB, free: 9.594 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/13.06, allocations: 12.02 kB / 3.856 GB, free: 9.586 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.209e-05/13.06, allocations: 7.453 kB / 3.856 GB, free: 9.586 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/13.08, allocations: 5.489 MB / 3.861 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.079e-05/13.08, allocations: 3.844 kB / 3.861 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/13.08, allocations: 172.5 kB / 3.862 GB, free: 8.672 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01097/13.09, allocations: 1.773 MB / 3.863 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002861/13.09, allocations: 31.33 kB / 3.863 GB, free: 8.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/13.09, allocations: 2.084 MB / 3.865 GB, free: 22.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.096e-06/13.09, allocations: 9.875 kB / 3.865 GB, free: 22.14 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0073/13.1, allocations: 3.808 MB / 3.869 GB, free: 18.48 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001692/13.1, allocations: 0.5297 MB / 3.87 GB, free: 18.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005812/13.1, allocations: 25.12 kB / 3.87 GB, free: 17.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002149/13.1, allocations: 99.03 kB / 3.87 GB, free: 17.92 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003218/13.1, allocations: 72.11 kB / 3.87 GB, free: 17.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/13.1, allocations: 36.88 kB / 3.87 GB, free: 17.84 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002392/13.11, allocations: 1.035 MB / 3.871 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.973e-06/13.11, allocations: 0 / 3.871 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01108/13.12, allocations: 2.062 MB / 3.873 GB, free: 14.87 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.02325/13.14, allocations: 6.61 MB / 3.879 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007532/13.15, allocations: 2.26 MB / 3.881 GB, free: 6.836 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/13.15, allocations: 0 / 3.881 GB, free: 6.836 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002613/13.15, allocations: 0.9887 MB / 3.882 GB, free: 5.914 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00605/13.16, allocations: 0.6305 MB / 3.883 GB, free: 5.461 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/13.17, allocations: 3.838 MB / 3.887 GB, free: 1.961 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/13.17, allocations: 1.468 MB / 3.888 GB, free: 0.7344 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001735/13.18, allocations: 0.7175 MB / 3.889 GB, free: 76 kB / 0.5417 GB Notification: Performance of SimCode: time 2.134e-06/13.18, allocations: 4 kB / 3.889 GB, free: 72 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.977/18.15, allocations: 66.97 MB / 3.954 GB, free: 74.56 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