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.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.536/2.536, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007266/0.0007266, allocations: 16 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4342, allocations: 54.86 MB / 369.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.291/2.726, allocations: 0.6877 GB / 1.048 GB, free: 125.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/2.726, allocations: 79.42 kB / 1.049 GB, free: 125.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.204/5.931, allocations: 0.5508 GB / 1.599 GB, free: 41.67 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.775e-06/5.931, allocations: 0 / 1.599 GB, free: 41.67 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003321/5.931, allocations: 62.27 kB / 1.599 GB, free: 41.67 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.01498/5.946, allocations: 3.325 MB / 1.603 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/5.946, allocations: 7 kB / 1.603 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00145/5.947, allocations: 253.7 kB / 1.603 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00478/5.952, allocations: 454.4 kB / 1.603 GB, free: 40.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008343/5.961, allocations: 1.95 MB / 1.605 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/5.961, allocations: 134.7 kB / 1.605 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009401/5.962, allocations: 165.7 kB / 1.605 GB, free: 39.97 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007684/5.97, allocations: 2.617 MB / 1.608 GB, free: 39.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.503e-05/5.97, allocations: 6.344 kB / 1.608 GB, free: 39.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004241/5.97, allocations: 77.31 kB / 1.608 GB, free: 39.54 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000342/5.97, allocations: 149.8 kB / 1.608 GB, free: 39.54 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007423/5.978, allocations: 2.247 MB / 1.61 GB, free: 39.52 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.02477/6.003, allocations: 10.96 MB / 1.621 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004902/6.008, allocations: 1.791 MB / 1.623 GB, free: 33.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001423/6.009, allocations: 460.8 kB / 1.623 GB, free: 33.06 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003099/6.012, allocations: 1.172 MB / 1.624 GB, free: 32.93 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=162): time 5.36e-06/6.012, allocations: 0 / 1.624 GB, free: 32.93 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.04673/6.059, allocations: 10.99 MB / 1.635 GB, free: 30.96 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/6.059, allocations: 253 kB / 1.635 GB, free: 30.67 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003037/6.062, allocations: 1.344 MB / 1.637 GB, free: 30.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007912/6.063, allocations: 62.17 kB / 1.637 GB, free: 30.47 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009515/6.064, allocations: 0.8122 MB / 1.638 GB, free: 30.08 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001232/6.065, allocations: 0.626 MB / 1.638 GB, free: 29.68 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002974/6.066, allocations: 39.97 kB / 1.638 GB, free: 29.68 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001804/6.066, allocations: 394.9 kB / 1.639 GB, free: 29.37 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003102/6.069, allocations: 1.029 MB / 1.64 GB, free: 29.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003721/6.073, allocations: 1.479 MB / 1.641 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003811/6.077, allocations: 1.305 MB / 1.642 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-05/6.077, allocations: 3.5 kB / 1.642 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.009113/6.086, allocations: 2.968 MB / 1.645 GB, free: 28.63 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001029/6.087, allocations: 4.167 MB / 1.649 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/6.087, allocations: 15.05 kB / 1.649 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007434/6.088, allocations: 192.5 kB / 1.65 GB, free: 24.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004711/6.092, allocations: 0.5458 MB / 1.65 GB, free: 24.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/6.094, allocations: 2.333 MB / 1.652 GB, free: 22.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004371/6.099, allocations: 213.2 kB / 1.653 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007603/6.099, allocations: 192 kB / 1.653 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/6.099, allocations: 7.375 kB / 1.653 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007921/6.107, allocations: 2.815 MB / 1.655 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.219e-05/6.107, allocations: 10.66 kB / 1.655 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005834/6.108, allocations: 195.5 kB / 1.656 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004391/6.112, allocations: 0.5339 MB / 1.656 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/6.115, allocations: 2.33 MB / 1.658 GB, free: 35.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003428/6.118, allocations: 206.6 kB / 1.659 GB, free: 35.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006314/6.119, allocations: 188.2 kB / 1.659 GB, free: 35.94 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.002295/6.121, allocations: 0.6918 MB / 1.66 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007448/6.122, allocations: 207.9 kB / 1.66 GB, free: 35.57 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01196/6.134, allocations: 3.515 MB / 1.663 GB, free: 35.32 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/6.134, allocations: 25.56 kB / 1.663 GB, free: 35.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/6.134, allocations: 0 / 1.663 GB, free: 35.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006952/6.141, allocations: 2.772 MB / 1.666 GB, free: 34.74 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02004/6.161, allocations: 6.925 MB / 1.673 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/6.161, allocations: 8.156 kB / 1.673 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003644/6.165, allocations: 447.9 kB / 1.673 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007029/6.166, allocations: 185.8 kB / 1.673 GB, free: 33.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005313/6.166, allocations: 101.9 kB / 1.673 GB, free: 33.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002833/6.169, allocations: 3.081 MB / 1.676 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/6.169, allocations: 13.22 kB / 1.676 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01156/6.181, allocations: 4.732 MB / 1.681 GB, free: 29.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002047/6.183, allocations: 0.5284 MB / 1.682 GB, free: 29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007832/6.184, allocations: 65.53 kB / 1.682 GB, free: 29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002801/6.187, allocations: 132.1 kB / 1.682 GB, free: 28.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005664/6.187, allocations: 174.3 kB / 1.682 GB, free: 28.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004298/6.188, allocations: 172.2 kB / 1.682 GB, free: 28.98 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002277/6.19, allocations: 1.022 MB / 1.683 GB, free: 28.87 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.21e-07/6.19, allocations: 0 / 1.683 GB, free: 28.87 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009269/6.199, allocations: 1.949 MB / 1.685 GB, free: 28.62 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.02046/6.22, allocations: 9.334 MB / 1.694 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01222/6.232, allocations: 4.392 MB / 1.698 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-05/6.232, allocations: 0 / 1.698 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003962/6.236, allocations: 1.577 MB / 1.7 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007852/6.244, allocations: 0.9217 MB / 1.701 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03145/6.275, allocations: 16.19 MB / 1.717 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002318/6.278, allocations: 1.696 MB / 1.718 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003977/6.282, allocations: 1.038 MB / 1.719 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/6.282, allocations: 0 / 1.719 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.204/11.49, allocations: 92.19 MB / 1.809 GB, free: 69.78 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat