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.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.296/2.296, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000448/0.0004477, allocations: 12 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4309/0.4315, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.445/2.876, allocations: 0.6877 GB / 1.048 GB, free: 125.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/2.876, allocations: 86.19 kB / 1.049 GB, free: 125.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.282/6.159, allocations: 0.5508 GB / 1.599 GB, free: 41.74 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.535e-06/6.159, allocations: 1.719 kB / 1.599 GB, free: 41.74 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000359/6.159, allocations: 63.66 kB / 1.599 GB, free: 41.74 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01558/6.175, allocations: 3.322 MB / 1.603 GB, free: 40.57 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/6.175, allocations: 7.438 kB / 1.603 GB, free: 40.57 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00153/6.176, allocations: 249.5 kB / 1.603 GB, free: 40.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005054/6.181, allocations: 449 kB / 1.603 GB, free: 40.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008891/6.19, allocations: 1.951 MB / 1.605 GB, free: 40.06 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/6.191, allocations: 139.8 kB / 1.605 GB, free: 40.05 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001106/6.192, allocations: 165 kB / 1.605 GB, free: 40.05 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008029/6.2, allocations: 2.62 MB / 1.608 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.158e-05/6.2, allocations: 6.938 kB / 1.608 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004317/6.2, allocations: 74 kB / 1.608 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002955/6.201, allocations: 149.7 kB / 1.608 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007502/6.208, allocations: 2.245 MB / 1.61 GB, free: 39.6 MB / 0.4948 GB 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.02632/6.235, allocations: 10.96 MB / 1.621 GB, free: 33.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005202/6.24, allocations: 1.792 MB / 1.623 GB, free: 33.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001536/6.242, allocations: 461 kB / 1.623 GB, free: 33.14 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003765/6.245, allocations: 1.174 MB / 1.625 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=162): time 7.143e-06/6.245, allocations: 0.8438 kB / 1.625 GB, free: 33.02 MB / 0.4948 GB 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=185): time 0.04799/6.293, allocations: 10.99 MB / 1.635 GB, free: 31.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/6.294, allocations: 258.5 kB / 1.635 GB, free: 30.76 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003091/6.297, allocations: 1.342 MB / 1.637 GB, free: 30.59 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007187/6.297, allocations: 63.33 kB / 1.637 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008489/6.298, allocations: 0.8094 MB / 1.638 GB, free: 30.17 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00119/6.3, allocations: 0.6231 MB / 1.638 GB, free: 29.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/6.3, allocations: 45.81 kB / 1.638 GB, free: 29.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001996/6.3, allocations: 390.4 kB / 1.639 GB, free: 29.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003232/6.303, allocations: 1.03 MB / 1.64 GB, free: 29.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003913/6.307, allocations: 1.486 MB / 1.641 GB, free: 29.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003905/6.311, allocations: 1.301 MB / 1.642 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.1e-05/6.311, allocations: 3.969 kB / 1.642 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.009717/6.321, allocations: 2.973 MB / 1.645 GB, free: 28.72 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001246/6.322, allocations: 4.166 MB / 1.649 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.283e-05/6.322, allocations: 11.28 kB / 1.649 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008911/6.323, allocations: 190.8 kB / 1.65 GB, free: 24.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004932/6.328, allocations: 0.5443 MB / 1.65 GB, free: 24.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/6.33, allocations: 2.332 MB / 1.652 GB, free: 22.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004421/6.335, allocations: 217.8 kB / 1.653 GB, free: 22.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009282/6.336, allocations: 188.8 kB / 1.653 GB, free: 22.28 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/6.336, allocations: 1.969 kB / 1.653 GB, free: 22.28 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009016/6.345, allocations: 2.816 MB / 1.656 GB, free: 22.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.251e-05/6.345, allocations: 9.312 kB / 1.656 GB, free: 22.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005988/6.345, allocations: 199.2 kB / 1.656 GB, free: 22.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004483/6.35, allocations: 0.5345 MB / 1.656 GB, free: 22.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/6.353, allocations: 2.325 MB / 1.658 GB, free: 36.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003465/6.356, allocations: 207.8 kB / 1.659 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008053/6.357, allocations: 184.9 kB / 1.659 GB, free: 36.02 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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.002572/6.36, allocations: 0.688 MB / 1.66 GB, free: 35.76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007724/6.36, allocations: 209.9 kB / 1.66 GB, free: 35.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01291/6.373, allocations: 3.536 MB / 1.663 GB, free: 35.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.39e-05/6.373, allocations: 19.31 kB / 1.663 GB, free: 35.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/6.373, allocations: 3.938 kB / 1.663 GB, free: 35.41 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007738/6.381, allocations: 2.765 MB / 1.666 GB, free: 34.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02084/6.402, allocations: 6.931 MB / 1.673 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/6.402, allocations: 4.188 kB / 1.673 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003617/6.406, allocations: 451.4 kB / 1.673 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006859/6.406, allocations: 183.9 kB / 1.673 GB, free: 33.31 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005133/6.407, allocations: 106.1 kB / 1.673 GB, free: 33.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/6.41, allocations: 3.071 MB / 1.676 GB, free: 30.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/6.41, allocations: 11.91 kB / 1.676 GB, free: 30.51 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/6.421, allocations: 4.73 MB / 1.681 GB, free: 29.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002111/6.423, allocations: 0.5403 MB / 1.682 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007948/6.424, allocations: 62.03 kB / 1.682 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002828/6.427, allocations: 129.3 kB / 1.682 GB, free: 29.07 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005914/6.427, allocations: 176.6 kB / 1.682 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004499/6.428, allocations: 165.6 kB / 1.682 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002262/6.43, allocations: 1.029 MB / 1.683 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.61e-07/6.43, allocations: 0 / 1.683 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00934/6.44, allocations: 1.946 MB / 1.685 GB, free: 28.7 MB / 0.5105 GB 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: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.02023/6.46, allocations: 9.334 MB / 1.694 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01269/6.473, allocations: 4.392 MB / 1.698 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.678e-05/6.473, allocations: 7.219 kB / 1.698 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003936/6.477, allocations: 1.566 MB / 1.7 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008093/6.485, allocations: 0.9225 MB / 1.701 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03156/6.516, allocations: 16.19 MB / 1.717 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002145/6.519, allocations: 1.702 MB / 1.718 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003665/6.522, allocations: 1.033 MB / 1.719 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of SimCode: time 1.242e-06/6.522, allocations: 3.562 kB / 1.719 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.886/11.41, allocations: 92.19 MB / 1.809 GB, free: 69.68 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat