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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.411/2.411, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.208e-05/2.213e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3554, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.276/2.631, allocations: 0.687 GB / 1.037 GB, free: 126.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/2.631, allocations: 79.66 kB / 1.037 GB, free: 126.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.709/5.34, allocations: 0.5441 GB / 1.581 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.814e-06/5.34, allocations: 0 / 1.581 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003629/5.341, allocations: 67.86 kB / 1.581 GB, free: 14.32 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.01411/5.355, allocations: 3.009 MB / 1.584 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/5.355, allocations: 16.03 kB / 1.584 GB, free: 11.22 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005011/5.36, allocations: 440.7 kB / 1.584 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008844/5.369, allocations: 1.937 MB / 1.586 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/5.369, allocations: 52 kB / 1.586 GB, free: 8.746 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008783/5.37, allocations: 99.98 kB / 1.586 GB, free: 8.648 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006948/5.377, allocations: 2.111 MB / 1.588 GB, free: 6.535 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008007/5.385, allocations: 2.357 MB / 1.591 GB, free: 4.027 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.843e-05/5.385, allocations: 7.922 kB / 1.591 GB, free: 4.02 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003876/5.386, allocations: 15.95 kB / 1.591 GB, free: 4.004 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003514/5.386, allocations: 150.9 kB / 1.591 GB, free: 3.855 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.4349/5.821, allocations: 10.72 MB / 1.601 GB, free: 38.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00487/5.826, allocations: 1.709 MB / 1.603 GB, free: 38.49 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00242/5.828, allocations: 0.9636 MB / 1.604 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001514/5.83, allocations: 452.9 kB / 1.604 GB, free: 38.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002834/5.833, allocations: 1.038 MB / 1.605 GB, free: 38.09 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=153): time 5.911e-06/5.833, allocations: 0 / 1.605 GB, free: 38.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=176): time 0.06526/5.898, allocations: 9.329 MB / 1.615 GB, free: 37.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/5.898, allocations: 259.3 kB / 1.615 GB, free: 37 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/5.9, allocations: 1.072 MB / 1.616 GB, free: 36.84 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007228/5.901, allocations: 29.67 kB / 1.616 GB, free: 36.81 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009524/5.902, allocations: 0.8711 MB / 1.617 GB, free: 36.44 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001083/5.903, allocations: 0.5727 MB / 1.617 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/5.903, allocations: 1.812 kB / 1.617 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001734/5.904, allocations: 394.8 kB / 1.618 GB, free: 35.83 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/5.906, allocations: 0.9652 MB / 1.619 GB, free: 35.82 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002914/5.909, allocations: 1.399 MB / 1.62 GB, free: 35.39 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01636/5.925, allocations: 2.306 MB / 1.622 GB, free: 35.38 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.37e-05/5.925, allocations: 7.219 kB / 1.622 GB, free: 35.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.02111/5.947, allocations: 3.818 MB / 1.626 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001036/5.948, allocations: 4.167 MB / 1.63 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.143e-05/5.948, allocations: 9.812 kB / 1.63 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006096/5.948, allocations: 167.5 kB / 1.63 GB, free: 30.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004751/5.953, allocations: 0.5442 MB / 1.631 GB, free: 30.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/5.955, allocations: 2.342 MB / 1.633 GB, free: 28.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004257/5.959, allocations: 178.6 kB / 1.633 GB, free: 28.78 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006965/5.96, allocations: 192 kB / 1.633 GB, free: 28.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/5.96, allocations: 6.641 kB / 1.633 GB, free: 28.78 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0187/5.979, allocations: 3.437 MB / 1.637 GB, free: 28.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.124e-05/5.979, allocations: 10.28 kB / 1.637 GB, free: 28.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004899/5.979, allocations: 170.4 kB / 1.637 GB, free: 28.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004401/5.984, allocations: 0.5392 MB / 1.637 GB, free: 28.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/5.985, allocations: 2.339 MB / 1.64 GB, free: 26.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00345/5.989, allocations: 167.4 kB / 1.64 GB, free: 26.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004988/5.989, allocations: 186.6 kB / 1.64 GB, free: 26.59 MB / 0.4948 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 () * 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.0009065/5.99, allocations: 234.3 kB / 1.64 GB, free: 26.42 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01885/6.009, allocations: 3.26 MB / 1.643 GB, free: 26.22 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007703/6.01, allocations: 196.6 kB / 1.644 GB, free: 26.12 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02335/6.033, allocations: 3.886 MB / 1.647 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-05/6.033, allocations: 17.66 kB / 1.647 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/6.033, allocations: 0 / 1.647 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01958/6.053, allocations: 3.388 MB / 1.651 GB, free: 25.43 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03145/6.084, allocations: 6.872 MB / 1.657 GB, free: 24.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/6.084, allocations: 9.688 kB / 1.657 GB, free: 24.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003729/6.088, allocations: 410.4 kB / 1.658 GB, free: 24.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006627/6.089, allocations: 162.6 kB / 1.658 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005864/6.09, allocations: 67.69 kB / 1.658 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/6.092, allocations: 3.033 MB / 1.661 GB, free: 21.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/6.092, allocations: 5.438 kB / 1.661 GB, free: 21.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02327/6.115, allocations: 5.101 MB / 1.666 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002177/6.117, allocations: 0.4918 MB / 1.666 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009495/6.118, allocations: 28.78 kB / 1.667 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003105/6.121, allocations: 95.47 kB / 1.667 GB, free: 20.28 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006644/6.122, allocations: 157.8 kB / 1.667 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000426/6.123, allocations: 154.9 kB / 1.667 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001819/6.124, allocations: 0.7931 MB / 1.668 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.01e-07/6.124, allocations: 0 / 1.668 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0106/6.135, allocations: 1.796 MB / 1.669 GB, free: 20.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 178 * 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.03429/6.169, allocations: 9.649 MB / 1.679 GB, free: 32.97 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01116/6.181, allocations: 4.062 MB / 1.683 GB, free: 32.68 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.781e-05/6.181, allocations: 6.406 kB / 1.683 GB, free: 32.68 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003726/6.184, allocations: 1.41 MB / 1.684 GB, free: 32.46 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009135/6.194, allocations: 0.7762 MB / 1.685 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02943/6.223, allocations: 6.35 MB / 1.691 GB, free: 31.41 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001878/6.225, allocations: 1.703 MB / 1.693 GB, free: 30.68 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003655/6.229, allocations: 1.008 MB / 1.694 GB, free: 30.68 MB / 0.5105 GB Notification: Performance of SimCode: time 1.874e-06/6.229, allocations: 1.625 kB / 1.694 GB, free: 30.68 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.47/10.7, allocations: 91.49 MB / 1.783 GB, free: 7.359 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