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.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.886/1.886, allocations: 209.2 MB / 224.8 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004477, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3881, allocations: 48.71 MB / 331.4 MB, free: 6.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.166/2.554, allocations: 0.6812 GB / 1.005 GB, free: 112.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/2.555, allocations: 82.27 kB / 1.005 GB, free: 112.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.313/5.868, allocations: 0.6153 GB / 1.62 GB, free: 29.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.339e-06/5.868, allocations: 0 / 1.62 GB, free: 29.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000387/5.868, allocations: 66.98 kB / 1.62 GB, free: 29.3 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: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.01712/5.886, allocations: 3.48 MB / 1.624 GB, free: 27.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/5.886, allocations: 9.969 kB / 1.624 GB, free: 27.27 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001622/5.887, allocations: 257.1 kB / 1.624 GB, free: 27.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005372/5.893, allocations: 468 kB / 1.624 GB, free: 26.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008942/5.902, allocations: 2.004 MB / 1.626 GB, free: 26.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/5.902, allocations: 136.2 kB / 1.626 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009329/5.903, allocations: 187.6 kB / 1.627 GB, free: 25.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009488/5.912, allocations: 2.725 MB / 1.629 GB, free: 24.63 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/5.913, allocations: 7.375 kB / 1.629 GB, free: 24.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006167/5.913, allocations: 83.55 kB / 1.629 GB, free: 24.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003219/5.914, allocations: 155.5 kB / 1.63 GB, free: 24.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00753/5.921, allocations: 2.335 MB / 1.632 GB, free: 23.18 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.02453/5.946, allocations: 11.51 MB / 1.643 GB, free: 11.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005067/5.951, allocations: 1.859 MB / 1.645 GB, free: 9.832 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001447/5.952, allocations: 460.3 kB / 1.645 GB, free: 9.328 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003088/5.955, allocations: 1.218 MB / 1.646 GB, free: 8.098 MB / 458.7 MB Notification: Performance of pre-optimization done (n=168): time 5.981e-06/5.955, allocations: 0 / 1.646 GB, free: 8.098 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=196): time 0.0652/6.021, allocations: 12.2 MB / 1.658 GB, free: 11.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002015/6.021, allocations: 257.3 kB / 1.659 GB, free: 11.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/6.024, allocations: 1.395 MB / 1.66 GB, free: 9.926 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007881/6.025, allocations: 65.7 kB / 1.66 GB, free: 9.855 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/6.026, allocations: 0.8612 MB / 1.661 GB, free: 8.988 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001439/6.028, allocations: 0.6624 MB / 1.662 GB, free: 8.316 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003045/6.028, allocations: 48 kB / 1.662 GB, free: 8.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002947/6.028, allocations: 395.2 kB / 1.662 GB, free: 7.875 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003648/6.032, allocations: 1.074 MB / 1.663 GB, free: 6.797 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004506/6.037, allocations: 1.57 MB / 1.665 GB, free: 5.039 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004443/6.041, allocations: 1.364 MB / 1.666 GB, free: 3.664 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.548e-05/6.041, allocations: 4 kB / 1.666 GB, free: 3.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.0109/6.052, allocations: 3.229 MB / 1.669 GB, free: 404 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3985/6.451, allocations: 4.675 MB / 1.674 GB, free: 41.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-05/6.451, allocations: 12.03 kB / 1.674 GB, free: 41.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/6.452, allocations: 305.5 kB / 1.674 GB, free: 41.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005026/6.457, allocations: 0.5705 MB / 1.674 GB, free: 41.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/6.46, allocations: 3.007 MB / 1.677 GB, free: 38.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00469/6.465, allocations: 220.5 kB / 1.678 GB, free: 38.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009259/6.466, allocations: 210.2 kB / 1.678 GB, free: 38.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/6.466, allocations: 4.281 kB / 1.678 GB, free: 38.79 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009744/6.475, allocations: 3.067 MB / 1.681 GB, free: 38.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.567e-05/6.476, allocations: 12.34 kB / 1.681 GB, free: 38.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/6.477, allocations: 299 kB / 1.681 GB, free: 38.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00481/6.482, allocations: 0.5616 MB / 1.682 GB, free: 38.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/6.484, allocations: 3.004 MB / 1.685 GB, free: 36.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003729/6.488, allocations: 218.9 kB / 1.685 GB, free: 36.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006656/6.489, allocations: 205.1 kB / 1.685 GB, free: 36.02 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002323/6.491, allocations: 0.7084 MB / 1.686 GB, free: 35.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008667/6.492, allocations: 216.2 kB / 1.686 GB, free: 35.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01482/6.507, allocations: 3.812 MB / 1.69 GB, free: 35.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.33e-05/6.507, allocations: 21.55 kB / 1.69 GB, free: 35.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/6.507, allocations: 4.922 kB / 1.69 GB, free: 35.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00817/6.515, allocations: 2.973 MB / 1.693 GB, free: 34.95 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02418/6.539, allocations: 7.055 MB / 1.699 GB, free: 33.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.794e-05/6.539, allocations: 7.25 kB / 1.699 GB, free: 33.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009325/6.548, allocations: 455.6 kB / 1.7 GB, free: 33.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001886/6.55, allocations: 316.7 kB / 1.7 GB, free: 33.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007075/6.551, allocations: 110.5 kB / 1.7 GB, free: 33.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/6.564, allocations: 3.76 MB / 1.704 GB, free: 30.34 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.496e-05/6.564, allocations: 11.94 kB / 1.704 GB, free: 30.34 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02947/6.593, allocations: 4.969 MB / 1.709 GB, free: 29.29 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01096/6.604, allocations: 0.5443 MB / 1.709 GB, free: 29.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/6.606, allocations: 62.5 kB / 1.709 GB, free: 29.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004581/6.61, allocations: 135.2 kB / 1.71 GB, free: 29.08 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008364/6.611, allocations: 188.2 kB / 1.71 GB, free: 29.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007039/6.612, allocations: 181.1 kB / 1.71 GB, free: 29.07 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00329/6.615, allocations: 1.064 MB / 1.711 GB, free: 28.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.01e-07/6.615, allocations: 0 / 1.711 GB, free: 28.96 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.012/6.627, allocations: 2.052 MB / 1.713 GB, free: 28.96 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0217/6.649, allocations: 9.549 MB / 1.722 GB, free: 25.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01312/6.662, allocations: 4.539 MB / 1.727 GB, free: 25.18 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.805e-05/6.662, allocations: 2.781 kB / 1.727 GB, free: 25.18 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004546/6.667, allocations: 1.614 MB / 1.728 GB, free: 24.93 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008813/6.676, allocations: 1.04 MB / 1.729 GB, free: 24.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03863/6.714, allocations: 17.52 MB / 1.746 GB, free: 29.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002449/6.717, allocations: 1.739 MB / 1.748 GB, free: 28.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003831/6.721, allocations: 1.09 MB / 1.749 GB, free: 28.75 MB / 490.7 MB Notification: Performance of SimCode: time 1.103e-06/6.721, allocations: 0 / 1.749 GB, free: 28.75 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.28/12, allocations: 104.6 MB / 1.851 GB, free: 2.781 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat