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.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.332/2.332, allocations: 235 MB / 248 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.472e-05/4.485e-05, allocations: 11.98 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.408/0.408, allocations: 54.84 MB / 364.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.072/8.48, allocations: 2.673 GB / 3.029 GB, free: 84.34 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/8.481, allocations: 74.84 kB / 3.029 GB, free: 84.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.872/13.35, allocations: 0.8678 GB / 3.897 GB, free: 35.47 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.304e-06/13.35, allocations: 1.594 kB / 3.897 GB, free: 35.47 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003038/13.35, allocations: 61.16 kB / 3.897 GB, free: 35.46 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01773/13.37, allocations: 3.759 MB / 3.901 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/13.37, allocations: 9.031 kB / 3.901 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001264/13.37, allocations: 269.2 kB / 3.901 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/13.39, allocations: 0.7808 MB / 3.902 GB, free: 33.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/13.4, allocations: 1.979 MB / 3.904 GB, free: 33.21 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003901/13.4, allocations: 164.9 kB / 3.904 GB, free: 33.21 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/13.4, allocations: 185.9 kB / 3.904 GB, free: 33.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01474/13.41, allocations: 3.246 MB / 3.907 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/13.41, allocations: 7 kB / 3.907 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005495/13.41, allocations: 85.47 kB / 3.907 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00041/13.41, allocations: 150.2 kB / 3.908 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/13.43, allocations: 2.829 MB / 3.91 GB, free: 32.7 MB / 0.5105 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.03464/13.46, allocations: 13.9 MB / 3.924 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009314/13.47, allocations: 1.953 MB / 3.926 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003507/13.47, allocations: 1.03 MB / 3.927 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06519/13.54, allocations: 18.89 MB / 3.945 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009052/13.55, allocations: 1.596 MB / 3.947 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003417/13.55, allocations: 174 kB / 3.947 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 1.695e-05/13.55, allocations: 0 / 3.947 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.03188/13.58, allocations: 6.867 MB / 3.954 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/13.59, allocations: 256.5 kB / 3.954 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/13.59, allocations: 1.265 MB / 3.955 GB, free: 26.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005921/13.59, allocations: 56.36 kB / 3.955 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000881/13.59, allocations: 0.8467 MB / 3.956 GB, free: 26.27 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008807/13.59, allocations: 0.5552 MB / 3.957 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/13.59, allocations: 34.91 kB / 3.957 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002367/13.59, allocations: 384.2 kB / 3.957 GB, free: 25.61 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002372/13.59, allocations: 0.915 MB / 3.958 GB, free: 25.61 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/13.6, allocations: 1.355 MB / 3.959 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/13.6, allocations: 1.168 MB / 3.96 GB, free: 25.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/13.6, allocations: 3.969 kB / 3.96 GB, free: 25.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008145/13.61, allocations: 2.811 MB / 3.963 GB, free: 24.87 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001868/13.61, allocations: 4.246 MB / 3.967 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.495e-05/13.61, allocations: 11.75 kB / 3.967 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004319/13.61, allocations: 0.5167 MB / 3.968 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003718/13.62, allocations: 455.6 kB / 3.968 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/13.62, allocations: 2.712 MB / 3.971 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00433/13.62, allocations: 262.8 kB / 3.971 GB, free: 18.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006812/13.62, allocations: 96.77 kB / 3.971 GB, free: 18.33 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/13.62, allocations: 9.844 kB / 3.971 GB, free: 18.32 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007292/13.63, allocations: 2.544 MB / 3.974 GB, free: 18.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.915e-05/13.63, allocations: 13.03 kB / 3.974 GB, free: 18.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009339/13.63, allocations: 198 kB / 3.974 GB, free: 18.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003897/13.64, allocations: 465.9 kB / 3.974 GB, free: 18.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/13.64, allocations: 1.876 MB / 3.976 GB, free: 16.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003489/13.64, allocations: 263.4 kB / 3.976 GB, free: 16.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003154/13.64, allocations: 95.44 kB / 3.977 GB, free: 16.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008689/13.64, allocations: 293.4 kB / 3.977 GB, free: 16.42 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006346/13.64, allocations: 199.4 kB / 3.977 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01493/13.66, allocations: 7.338 MB / 3.984 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/13.66, allocations: 88.69 kB / 3.984 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/13.66, allocations: 0 / 3.984 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01185/13.67, allocations: 6.42 MB / 3.991 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02524/13.7, allocations: 11.08 MB / 4.001 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.934e-05/13.7, allocations: 9.812 kB / 4.001 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002927/13.7, allocations: 359 kB / 4.002 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004289/13.7, allocations: 1.296 MB / 4.003 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005714/13.7, allocations: 76.34 kB / 4.003 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003671/13.71, allocations: 3.198 MB / 4.006 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-05/13.71, allocations: 8.188 kB / 4.006 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/13.72, allocations: 7.156 MB / 4.013 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002513/13.73, allocations: 0.7042 MB / 4.014 GB, free: 9.723 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007775/13.73, allocations: 52.31 kB / 4.014 GB, free: 9.723 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003041/13.73, allocations: 190 kB / 4.014 GB, free: 9.711 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005047/13.73, allocations: 151.3 kB / 4.014 GB, free: 9.707 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002428/13.73, allocations: 72.92 kB / 4.014 GB, free: 9.707 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002414/13.73, allocations: 1.071 MB / 4.015 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.92e-07/13.73, allocations: 0 / 4.015 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01284/13.75, allocations: 2.597 MB / 4.018 GB, free: 9.211 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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,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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02903/13.77, allocations: 11.25 MB / 4.029 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01195/13.79, allocations: 4.578 MB / 4.033 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/13.79, allocations: 2.438 kB / 4.033 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005841/13.79, allocations: 2.435 MB / 4.036 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00866/13.8, allocations: 0.9241 MB / 4.037 GB, free: 2.797 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.845/14.65, allocations: 129.8 MB / 4.163 GB, free: 55.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002357/14.65, allocations: 2.137 MB / 4.165 GB, free: 54.52 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002611/14.65, allocations: 1.243 MB / 4.167 GB, free: 54.52 MB / 0.5417 GB Notification: Performance of SimCode: time 1.323e-06/14.65, allocations: 4 kB / 4.167 GB, free: 54.52 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.446/20.1, allocations: 123.6 MB / 4.287 GB, free: 74.46 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat