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.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.001/2.001, allocations: 209.3 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006685/0.0006686, allocations: 16 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.112, allocations: 48.7 MB / 331.4 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.446/2.558, allocations: 0.6811 GB / 1.005 GB, free: 106.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/2.559, allocations: 88.12 kB / 1.005 GB, free: 106.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.187/5.746, allocations: 0.5505 GB / 1.555 GB, free: 34.13 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.067e-06/5.746, allocations: 4.25 kB / 1.555 GB, free: 34.13 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004079/5.747, allocations: 64.89 kB / 1.555 GB, free: 34.13 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.01597/5.763, allocations: 3.305 MB / 1.559 GB, free: 32.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/5.763, allocations: 5.844 kB / 1.559 GB, free: 32.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001507/5.764, allocations: 249.3 kB / 1.559 GB, free: 32.75 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005136/5.769, allocations: 451.6 kB / 1.559 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009256/5.779, allocations: 1.942 MB / 1.561 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002867/5.779, allocations: 133.1 kB / 1.561 GB, free: 32.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001126/5.78, allocations: 162.5 kB / 1.561 GB, free: 32.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009412/5.79, allocations: 2.603 MB / 1.564 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/5.79, allocations: 7.281 kB / 1.564 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008113/5.791, allocations: 73.64 kB / 1.564 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003281/5.791, allocations: 151 kB / 1.564 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007939/5.799, allocations: 2.236 MB / 1.566 GB, free: 31.73 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.03062/5.83, allocations: 10.93 MB / 1.577 GB, free: 25.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01452/5.844, allocations: 1.796 MB / 1.579 GB, free: 25.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006697/5.851, allocations: 459.5 kB / 1.579 GB, free: 25.24 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008151/5.859, allocations: 1.16 MB / 1.58 GB, free: 25.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 7.774e-06/5.859, allocations: 0 / 1.58 GB, free: 25.12 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.07936/5.938, allocations: 10.96 MB / 1.591 GB, free: 23.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/5.939, allocations: 262.3 kB / 1.591 GB, free: 22.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002878/5.942, allocations: 1.344 MB / 1.593 GB, free: 22.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007017/5.942, allocations: 62.42 kB / 1.593 GB, free: 22.67 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007979/5.943, allocations: 0.8051 MB / 1.593 GB, free: 22.28 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001043/5.944, allocations: 0.6153 MB / 1.594 GB, free: 21.89 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/5.944, allocations: 38.47 kB / 1.594 GB, free: 21.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/5.945, allocations: 391 kB / 1.595 GB, free: 21.58 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003096/5.948, allocations: 1.021 MB / 1.596 GB, free: 21.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004023/5.952, allocations: 1.472 MB / 1.597 GB, free: 21.14 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003767/5.956, allocations: 1.296 MB / 1.598 GB, free: 21.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/5.956, allocations: 7.688 kB / 1.598 GB, free: 21.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.009717/5.965, allocations: 2.996 MB / 1.601 GB, free: 20.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001012/5.967, allocations: 4.161 MB / 1.605 GB, free: 16.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.985e-05/5.967, allocations: 8.438 kB / 1.605 GB, free: 16.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007633/5.967, allocations: 196.4 kB / 1.605 GB, free: 16.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004745/5.972, allocations: 0.5391 MB / 1.606 GB, free: 16.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/5.975, allocations: 2.336 MB / 1.608 GB, free: 30.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005295/5.98, allocations: 207.8 kB / 1.608 GB, free: 30.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/5.981, allocations: 190.2 kB / 1.609 GB, free: 30.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/5.981, allocations: 3.219 kB / 1.609 GB, free: 30.4 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008781/5.99, allocations: 2.834 MB / 1.611 GB, free: 30.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.964e-05/5.99, allocations: 18.95 kB / 1.611 GB, free: 30.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005955/5.991, allocations: 188 kB / 1.612 GB, free: 30.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004476/5.995, allocations: 0.5453 MB / 1.612 GB, free: 30.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/5.997, allocations: 2.32 MB / 1.614 GB, free: 28.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003363/6.001, allocations: 210.6 kB / 1.615 GB, free: 28.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006392/6.002, allocations: 181 kB / 1.615 GB, free: 28.14 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (250): * Single equations (assignments): 244 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002267/6.004, allocations: 0.682 MB / 1.615 GB, free: 27.88 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007414/6.005, allocations: 207.5 kB / 1.616 GB, free: 27.78 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/6.017, allocations: 3.551 MB / 1.619 GB, free: 27.53 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.637e-05/6.017, allocations: 25.55 kB / 1.619 GB, free: 27.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/6.017, allocations: 0 / 1.619 GB, free: 27.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007372/6.025, allocations: 2.77 MB / 1.622 GB, free: 26.95 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02051/6.045, allocations: 6.921 MB / 1.629 GB, free: 25.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/6.045, allocations: 8.594 kB / 1.629 GB, free: 25.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00373/6.049, allocations: 446.6 kB / 1.629 GB, free: 25.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007263/6.05, allocations: 196.9 kB / 1.629 GB, free: 25.43 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005344/6.051, allocations: 99.2 kB / 1.629 GB, free: 25.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002892/6.053, allocations: 3.082 MB / 1.632 GB, free: 22.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/6.054, allocations: 11.03 kB / 1.632 GB, free: 22.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/6.065, allocations: 4.733 MB / 1.637 GB, free: 21.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002082/6.067, allocations: 0.5218 MB / 1.637 GB, free: 21.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008115/6.068, allocations: 62.77 kB / 1.637 GB, free: 21.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002914/6.071, allocations: 126.1 kB / 1.638 GB, free: 21.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006899/6.072, allocations: 175.1 kB / 1.638 GB, free: 21.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004936/6.072, allocations: 168.2 kB / 1.638 GB, free: 21.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002442/6.075, allocations: 1.021 MB / 1.639 GB, free: 21.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.31e-07/6.075, allocations: 5.781 kB / 1.639 GB, free: 21.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009773/6.085, allocations: 1.937 MB / 1.641 GB, free: 20.82 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (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) * 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 (196): * Single equations (assignments): 190 * 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: 4 * 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: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02167/6.106, allocations: 9.313 MB / 1.65 GB, free: 16.65 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01284/6.119, allocations: 4.279 MB / 1.654 GB, free: 15.19 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/6.119, allocations: 0 / 1.654 GB, free: 15.19 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004217/6.123, allocations: 1.522 MB / 1.656 GB, free: 14.54 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007977/6.132, allocations: 0.8946 MB / 1.656 GB, free: 14.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03218/6.164, allocations: 16.15 MB / 1.672 GB, free: 18.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002224/6.166, allocations: 1.696 MB / 1.674 GB, free: 17.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003915/6.17, allocations: 1.024 MB / 1.675 GB, free: 16.68 MB / 490.7 MB Notification: Performance of SimCode: time 1.303e-06/6.17, allocations: 0 / 1.675 GB, free: 16.68 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.041/11.21, allocations: 91.73 MB / 1.764 GB, free: 58.77 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat