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.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.011/2.011, allocations: 209.2 MB / 224.8 MB, free: 1.547 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004505/0.0004506, allocations: 8 kB / 282.7 MB, free: 9.676 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1115, allocations: 48.71 MB / 331.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.606/8.718, allocations: 2.567 GB / 2.891 GB, free: 54.03 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005261/8.719, allocations: 76.19 kB / 2.891 GB, free: 53.99 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891/14.61, allocations: 0.9848 GB / 3.875 GB, free: 22.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.584e-06/14.61, allocations: 0 / 3.875 GB, free: 22.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003918/14.61, allocations: 68.2 kB / 3.876 GB, free: 22.79 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.02284/14.63, allocations: 4.401 MB / 3.88 GB, free: 20.79 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/14.63, allocations: 9.781 kB / 3.88 GB, free: 20.79 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00188/14.63, allocations: 321.8 kB / 3.88 GB, free: 20.74 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01035/14.65, allocations: 0.9131 MB / 3.881 GB, free: 20.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009068/14.65, allocations: 2.205 MB / 3.883 GB, free: 20.13 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004027/14.65, allocations: 197.8 kB / 3.883 GB, free: 20.12 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001297/14.66, allocations: 226.8 kB / 3.884 GB, free: 20.12 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/14.67, allocations: 3.9 MB / 3.887 GB, free: 19.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.664e-05/14.67, allocations: 8.156 kB / 3.887 GB, free: 19.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004937/14.67, allocations: 99.34 kB / 3.888 GB, free: 19.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003315/14.67, allocations: 171.7 kB / 3.888 GB, free: 19.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/14.69, allocations: 3.599 MB / 3.891 GB, free: 19.46 MB / 474.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.03289/14.72, allocations: 16.7 MB / 3.907 GB, free: 9.359 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/14.73, allocations: 3.155 MB / 3.911 GB, free: 8.742 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07783/14.81, allocations: 18.52 MB / 3.929 GB, free: 13.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01039/14.82, allocations: 1.852 MB / 3.93 GB, free: 12.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 6.792e-06/14.82, allocations: 0.6562 kB / 3.93 GB, free: 12.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=208): time 0.04994/14.87, allocations: 10.28 MB / 3.941 GB, free: 11.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002242/14.87, allocations: 258 kB / 3.941 GB, free: 11.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003344/14.87, allocations: 1.446 MB / 3.942 GB, free: 11.03 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007869/14.87, allocations: 69.36 kB / 3.942 GB, free: 11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/14.87, allocations: 0.9767 MB / 3.943 GB, free: 10.51 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001256/14.88, allocations: 0.6943 MB / 3.944 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002971/14.88, allocations: 45.91 kB / 3.944 GB, free: 10.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002664/14.88, allocations: 406.5 kB / 3.944 GB, free: 9.758 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004352/14.88, allocations: 1.26 MB / 3.946 GB, free: 9.742 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005075/14.89, allocations: 1.805 MB / 3.947 GB, free: 9.168 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005071/14.89, allocations: 1.53 MB / 3.949 GB, free: 9.055 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.508e-05/14.89, allocations: 2.375 kB / 3.949 GB, free: 9.055 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01447/14.91, allocations: 3.635 MB / 3.952 GB, free: 8.801 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002627/14.91, allocations: 5.469 MB / 3.958 GB, free: 19.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-05/14.91, allocations: 12.56 kB / 3.958 GB, free: 19.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00208/14.91, allocations: 350 kB / 3.958 GB, free: 19.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005077/14.92, allocations: 0.5997 MB / 3.959 GB, free: 19.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003164/14.92, allocations: 3.099 MB / 3.962 GB, free: 16.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005307/14.92, allocations: 345 kB / 3.962 GB, free: 16.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007121/14.92, allocations: 125.3 kB / 3.962 GB, free: 16.37 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/14.92, allocations: 3.812 kB / 3.962 GB, free: 16.37 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01178/14.94, allocations: 3.473 MB / 3.965 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.604e-05/14.94, allocations: 13.94 kB / 3.965 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/14.94, allocations: 344.5 kB / 3.966 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0049/14.94, allocations: 0.5965 MB / 3.966 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003067/14.95, allocations: 3.098 MB / 3.969 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004385/14.95, allocations: 325.6 kB / 3.97 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006951/14.95, allocations: 123.2 kB / 3.97 GB, free: 13.43 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002703/14.95, allocations: 0.7893 MB / 3.971 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007634/14.96, allocations: 228.3 kB / 3.971 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01941/14.97, allocations: 8.232 MB / 3.979 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/14.97, allocations: 90.47 kB / 3.979 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/14.97, allocations: 4 kB / 3.979 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01562/14.99, allocations: 7.155 MB / 3.986 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03292/15.02, allocations: 13.17 MB / 3.999 GB, free: 3.527 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.846e-05/15.02, allocations: 4 kB / 3.999 GB, free: 3.523 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004012/15.03, allocations: 481.9 kB / 3.999 GB, free: 3.129 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003014/15.03, allocations: 482.6 kB / 4 GB, free: 2.754 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006546/15.03, allocations: 81.55 kB / 4 GB, free: 2.688 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003284/15.03, allocations: 3.225 MB / 4.003 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.431e-05/15.03, allocations: 16.19 kB / 4.003 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02201/15.06, allocations: 8.471 MB / 4.011 GB, free: 7.496 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002859/15.06, allocations: 0.7903 MB / 4.012 GB, free: 6.793 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009526/15.06, allocations: 63.52 kB / 4.012 GB, free: 6.734 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003883/15.06, allocations: 231.1 kB / 4.012 GB, free: 6.555 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008847/15.07, allocations: 196.8 kB / 4.012 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004253/15.07, allocations: 87.45 kB / 4.013 GB, free: 6.355 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0031/15.07, allocations: 1.207 MB / 4.014 GB, free: 5.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.21e-07/15.07, allocations: 0 / 4.014 GB, free: 5.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01638/15.09, allocations: 2.88 MB / 4.017 GB, free: 2.516 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 57 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.468/15.55, allocations: 13.26 MB / 4.03 GB, free: 65.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01933/15.57, allocations: 5.832 MB / 4.035 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/15.57, allocations: 3.125 kB / 4.035 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007686/15.58, allocations: 2.98 MB / 4.038 GB, free: 65.07 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01253/15.59, allocations: 1.138 MB / 4.039 GB, free: 65.04 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4267/16.02, allocations: 141.1 MB / 4.177 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00284/16.02, allocations: 2.337 MB / 4.179 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003495/16.03, allocations: 1.447 MB / 4.181 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of SimCode: time 2.545e-06/16.03, allocations: 0 / 4.181 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.071/22.1, allocations: 148.9 MB / 4.326 GB, free: 36.84 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat