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.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",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: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004268/0.0004268, allocations: 16 kB / 282.7 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3729, allocations: 48.7 MB / 331.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.213/2.586, allocations: 0.6811 GB / 1.005 GB, free: 112.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/2.586, allocations: 77.78 kB / 1.005 GB, free: 112.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.993/5.579, allocations: 0.5505 GB / 1.555 GB, free: 34.46 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.485e-06/5.579, allocations: 0 / 1.555 GB, free: 34.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002615/5.579, allocations: 68.09 kB / 1.555 GB, free: 34.45 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.01383/5.593, allocations: 3.309 MB / 1.559 GB, free: 33 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/5.593, allocations: 9.188 kB / 1.559 GB, free: 33 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001276/5.595, allocations: 253 kB / 1.559 GB, free: 32.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00467/5.599, allocations: 445 kB / 1.559 GB, free: 32.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008463/5.608, allocations: 1.946 MB / 1.561 GB, free: 32.39 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/5.608, allocations: 134.5 kB / 1.561 GB, free: 32.39 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009365/5.609, allocations: 161.6 kB / 1.561 GB, free: 32.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008213/5.617, allocations: 2.605 MB / 1.564 GB, free: 31.96 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.603e-05/5.617, allocations: 2.812 kB / 1.564 GB, free: 31.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005153/5.618, allocations: 73.42 kB / 1.564 GB, free: 31.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003094/5.618, allocations: 154 kB / 1.564 GB, free: 31.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007006/5.625, allocations: 2.233 MB / 1.566 GB, free: 31.94 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.02147/5.647, allocations: 10.93 MB / 1.577 GB, free: 26.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004612/5.651, allocations: 1.794 MB / 1.579 GB, free: 25.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001384/5.653, allocations: 460.3 kB / 1.579 GB, free: 25.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0028/5.656, allocations: 1.167 MB / 1.58 GB, free: 25.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 4.508e-06/5.656, allocations: 1.062 kB / 1.58 GB, free: 25.32 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.04303/5.699, allocations: 10.96 MB / 1.591 GB, free: 23.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.986e-05/5.699, allocations: 262.6 kB / 1.591 GB, free: 23.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002634/5.701, allocations: 1.336 MB / 1.593 GB, free: 22.91 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000599/5.702, allocations: 63.58 kB / 1.593 GB, free: 22.88 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007415/5.703, allocations: 0.8096 MB / 1.593 GB, free: 22.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008869/5.704, allocations: 0.6115 MB / 1.594 GB, free: 22.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/5.704, allocations: 38.28 kB / 1.594 GB, free: 22.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/5.704, allocations: 391.5 kB / 1.594 GB, free: 21.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002781/5.707, allocations: 1.028 MB / 1.595 GB, free: 21.78 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003212/5.71, allocations: 1.466 MB / 1.597 GB, free: 21.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003353/5.714, allocations: 1.297 MB / 1.598 GB, free: 21.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/5.714, allocations: 0 / 1.598 GB, free: 21.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.007885/5.721, allocations: 2.995 MB / 1.601 GB, free: 21.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000991/5.723, allocations: 4.163 MB / 1.605 GB, free: 16.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.784e-05/5.723, allocations: 13.75 kB / 1.605 GB, free: 16.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006907/5.723, allocations: 189.8 kB / 1.605 GB, free: 16.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004581/5.728, allocations: 0.5465 MB / 1.606 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/5.73, allocations: 2.335 MB / 1.608 GB, free: 30.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004185/5.734, allocations: 216.6 kB / 1.608 GB, free: 30.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004775/5.735, allocations: 187.8 kB / 1.609 GB, free: 30.56 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/5.735, allocations: 3.781 kB / 1.609 GB, free: 30.56 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007443/5.742, allocations: 2.832 MB / 1.611 GB, free: 30.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-05/5.743, allocations: 12.12 kB / 1.611 GB, free: 30.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005847/5.743, allocations: 195.8 kB / 1.612 GB, free: 30.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004067/5.747, allocations: 0.5389 MB / 1.612 GB, free: 30.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/5.749, allocations: 2.333 MB / 1.614 GB, free: 28.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003205/5.752, allocations: 206.9 kB / 1.615 GB, free: 28.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004065/5.753, allocations: 181 kB / 1.615 GB, free: 28.2 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.002058/5.755, allocations: 0.6803 MB / 1.615 GB, free: 27.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000691/5.756, allocations: 211.3 kB / 1.616 GB, free: 27.73 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/5.767, allocations: 3.546 MB / 1.619 GB, free: 26.47 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.357e-05/5.767, allocations: 17.44 kB / 1.619 GB, free: 26.47 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/5.767, allocations: 3.828 kB / 1.619 GB, free: 26.47 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006667/5.774, allocations: 2.775 MB / 1.622 GB, free: 25.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01955/5.793, allocations: 6.916 MB / 1.629 GB, free: 21.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/5.793, allocations: 6.844 kB / 1.629 GB, free: 21.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003896/5.797, allocations: 446.3 kB / 1.629 GB, free: 21.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/5.798, allocations: 196.1 kB / 1.629 GB, free: 21.85 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007141/5.799, allocations: 99.17 kB / 1.629 GB, free: 21.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002754/5.802, allocations: 3.083 MB / 1.632 GB, free: 18.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/5.802, allocations: 11.28 kB / 1.632 GB, free: 18.85 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/5.814, allocations: 4.732 MB / 1.637 GB, free: 16.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002132/5.816, allocations: 0.5232 MB / 1.637 GB, free: 16.05 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009342/5.817, allocations: 57.98 kB / 1.637 GB, free: 16.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00287/5.82, allocations: 128.3 kB / 1.638 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006058/5.82, allocations: 182.2 kB / 1.638 GB, free: 15.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000428/5.821, allocations: 167.2 kB / 1.638 GB, free: 15.93 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002181/5.823, allocations: 1.025 MB / 1.639 GB, free: 15.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.733e-06/5.823, allocations: 0 / 1.639 GB, free: 15.55 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008758/5.832, allocations: 1.936 MB / 1.641 GB, free: 13.7 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.02048/5.852, allocations: 9.312 MB / 1.65 GB, free: 5.25 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01368/5.866, allocations: 4.271 MB / 1.654 GB, free: 1.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.797e-05/5.866, allocations: 8.062 kB / 1.654 GB, free: 1.473 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004223/5.87, allocations: 1.518 MB / 1.656 GB, free: 112 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009526/5.88, allocations: 0.983 MB / 1.657 GB, free: 15.59 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03199/5.912, allocations: 16.13 MB / 1.672 GB, free: 300 kB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4404/6.352, allocations: 1.713 MB / 1.674 GB, free: 60.56 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005376/6.358, allocations: 1.026 MB / 1.675 GB, free: 60.55 MB / 490.7 MB Notification: Performance of SimCode: time 1.653e-06/6.358, allocations: 0 / 1.675 GB, free: 60.55 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.644/11, allocations: 91.74 MB / 1.765 GB, free: 55.09 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat