Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.942/1.942, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004416, allocations: 8 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3645, allocations: 48.7 MB / 331.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.731/8.095, allocations: 2.542 GB / 2.865 GB, free: 91.22 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003853/8.096, allocations: 79.48 kB / 2.866 GB, free: 91.22 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.993/12.09, allocations: 0.7248 GB / 3.59 GB, free: 30.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.256e-06/12.09, allocations: 0 / 3.59 GB, free: 30.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002046/12.09, allocations: 33.14 kB / 3.59 GB, free: 30.81 MB / 458.7 MB 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.0167/12.11, allocations: 2.828 MB / 3.593 GB, free: 29.43 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/12.11, allocations: 11.84 kB / 3.593 GB, free: 29.43 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000948/12.11, allocations: 152.9 kB / 3.593 GB, free: 29.39 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006601/12.11, allocations: 466.1 kB / 3.594 GB, free: 29.31 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004132/12.12, allocations: 1.135 MB / 3.595 GB, free: 28.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/12.12, allocations: 145.8 kB / 3.595 GB, free: 28.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000414/12.12, allocations: 94.81 kB / 3.595 GB, free: 28.93 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006413/12.12, allocations: 1.892 MB / 3.597 GB, free: 28.58 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.534e-05/12.12, allocations: 5.062 kB / 3.597 GB, free: 28.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/12.13, allocations: 44.3 kB / 3.597 GB, free: 28.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001576/12.13, allocations: 79.05 kB / 3.597 GB, free: 28.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006911/12.13, allocations: 1.776 MB / 3.599 GB, free: 28.57 MB / 458.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.01796/12.15, allocations: 8.532 MB / 3.607 GB, free: 23.65 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005055/12.16, allocations: 1.406 MB / 3.608 GB, free: 23.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1961/12.35, allocations: 63.19 MB / 3.67 GB, free: 15.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003509/12.36, allocations: 0.886 MB / 3.671 GB, free: 15.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 4.469e-06/12.36, allocations: 0 / 3.671 GB, free: 15.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.01936/12.37, allocations: 4.629 MB / 3.676 GB, free: 14.19 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002381/12.37, allocations: 402.4 kB / 3.676 GB, free: 13.72 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/12.38, allocations: 0.9359 MB / 3.677 GB, free: 13.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003485/12.38, allocations: 49.64 kB / 3.677 GB, free: 13.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005476/12.38, allocations: 0.5598 MB / 3.677 GB, free: 13.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004605/12.38, allocations: 304.3 kB / 3.678 GB, free: 13.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/12.38, allocations: 28.59 kB / 3.678 GB, free: 13.01 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001994/12.38, allocations: 357.4 kB / 3.678 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001931/12.38, allocations: 0.5374 MB / 3.679 GB, free: 12.69 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002441/12.38, allocations: 1.012 MB / 3.68 GB, free: 12.11 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/12.39, allocations: 0.6954 MB / 3.68 GB, free: 12.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/12.39, allocations: 7.531 kB / 3.68 GB, free: 12.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006327/12.39, allocations: 1.857 MB / 3.682 GB, free: 11.76 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3862/12.78, allocations: 5.405 MB / 3.687 GB, free: 61.63 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.4e-05/12.78, allocations: 15.69 kB / 3.687 GB, free: 61.63 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01041/12.79, allocations: 1.107 MB / 3.688 GB, free: 61.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/12.79, allocations: 249.5 kB / 3.689 GB, free: 61.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003639/12.79, allocations: 1.492 MB / 3.69 GB, free: 61.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00249/12.8, allocations: 128.6 kB / 3.69 GB, free: 61.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/12.8, allocations: 74.98 kB / 3.69 GB, free: 61.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/12.8, allocations: 5.875 kB / 3.69 GB, free: 61.1 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005892/12.8, allocations: 1.683 MB / 3.692 GB, free: 61.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.612e-05/12.8, allocations: 14.66 kB / 3.692 GB, free: 61.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002443/12.81, allocations: 367.8 kB / 3.692 GB, free: 61.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002111/12.81, allocations: 280.9 kB / 3.693 GB, free: 61.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/12.81, allocations: 1.06 MB / 3.694 GB, free: 60.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/12.81, allocations: 132.6 kB / 3.694 GB, free: 60.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/12.81, allocations: 70.41 kB / 3.694 GB, free: 60.56 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 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 () * Number of clocked 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.001209/12.81, allocations: 467.6 kB / 3.694 GB, free: 60.37 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004199/12.81, allocations: 122.7 kB / 3.694 GB, free: 60.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009188/12.82, allocations: 4.069 MB / 3.698 GB, free: 60.14 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.257e-05/12.82, allocations: 44.23 kB / 3.698 GB, free: 60.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/12.82, allocations: 1.5 kB / 3.698 GB, free: 60.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.774e-05/12.82, allocations: 11 kB / 3.698 GB, free: 60.13 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/12.83, allocations: 5.543 MB / 3.704 GB, free: 59.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.259e-05/12.83, allocations: 7 kB / 3.704 GB, free: 59.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/12.84, allocations: 177.1 kB / 3.704 GB, free: 59.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01032/12.85, allocations: 1.54 MB / 3.706 GB, free: 59.53 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/12.85, allocations: 31.69 kB / 3.706 GB, free: 59.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/12.85, allocations: 2.094 MB / 3.708 GB, free: 58.47 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/12.85, allocations: 0 / 3.708 GB, free: 58.47 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008125/12.86, allocations: 3.987 MB / 3.712 GB, free: 57.89 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/12.86, allocations: 0.5362 MB / 3.712 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005049/12.86, allocations: 23.88 kB / 3.712 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001868/12.86, allocations: 96 kB / 3.712 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/12.86, allocations: 79.39 kB / 3.712 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/12.86, allocations: 40.92 kB / 3.712 GB, free: 57.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002263/12.86, allocations: 1.049 MB / 3.713 GB, free: 57.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.72e-07/12.86, allocations: 0 / 3.713 GB, free: 57.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01092/12.87, allocations: 2.044 MB / 3.715 GB, free: 57.57 MB / 490.7 MB 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 () * Number of clocked 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.02279/12.9, allocations: 6.785 MB / 3.722 GB, free: 55.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008383/12.91, allocations: 2.47 MB / 3.724 GB, free: 55.85 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/12.91, allocations: 0 / 3.724 GB, free: 55.85 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002664/12.91, allocations: 1.037 MB / 3.725 GB, free: 55.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005742/12.91, allocations: 0.6304 MB / 3.726 GB, free: 55.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01753/12.93, allocations: 15.48 MB / 3.741 GB, free: 43.83 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/12.93, allocations: 1.471 MB / 3.743 GB, free: 43.11 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/12.93, allocations: 0.719 MB / 3.743 GB, free: 43.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.112e-06/12.93, allocations: 0 / 3.743 GB, free: 43.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.738/17.67, allocations: 65.26 MB / 3.807 GB, free: 38.77 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat