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.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.394/2.394, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.66e-05/4.68e-05, allocations: 4 kB / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4175, allocations: 54.86 MB / 364.6 MB, free: 5.418 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.892/8.31, allocations: 2.656 GB / 3.012 GB, free: 99.97 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/8.31, allocations: 74.78 kB / 3.013 GB, free: 99.94 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.471/12.78, allocations: 0.8625 GB / 3.875 GB, free: 7.484 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.655e-06/12.78, allocations: 0 / 3.875 GB, free: 7.484 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004597/12.78, allocations: 54.66 kB / 3.875 GB, free: 7.434 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.0247/12.81, allocations: 3.823 MB / 3.879 GB, free: 3.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.663e-05/12.81, allocations: 12.02 kB / 3.879 GB, free: 3.559 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00176/12.81, allocations: 275.8 kB / 3.879 GB, free: 3.289 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01379/12.82, allocations: 0.7818 MB / 3.88 GB, free: 2.504 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01284/12.83, allocations: 1.942 MB / 3.882 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005354/12.84, allocations: 161 kB / 3.882 GB, free: 400 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00145/12.84, allocations: 185.5 kB / 3.882 GB, free: 224 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4693/13.31, allocations: 3.264 MB / 3.885 GB, free: 30.51 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-05/13.31, allocations: 8.312 kB / 3.885 GB, free: 30.51 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003974/13.31, allocations: 82.8 kB / 3.885 GB, free: 30.51 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003276/13.31, allocations: 141.8 kB / 3.886 GB, free: 30.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01152/13.32, allocations: 2.909 MB / 3.888 GB, free: 30.49 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.03206/13.35, allocations: 14.05 MB / 3.902 GB, free: 22.15 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00723/13.36, allocations: 1.955 MB / 3.904 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002797/13.36, allocations: 0.9553 MB / 3.905 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05968/13.42, allocations: 18.94 MB / 3.923 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005747/13.43, allocations: 1.561 MB / 3.925 GB, free: 26.16 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001973/13.43, allocations: 166.4 kB / 3.925 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 9.278e-06/13.43, allocations: 0 / 3.925 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.02851/13.46, allocations: 6.75 MB / 3.932 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001896/13.46, allocations: 258 kB / 3.932 GB, free: 24.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/13.46, allocations: 1.339 MB / 3.933 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006748/13.46, allocations: 51.98 kB / 3.933 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001359/13.46, allocations: 0.844 MB / 3.934 GB, free: 24.39 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001269/13.46, allocations: 0.5268 MB / 3.935 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003026/13.46, allocations: 35.09 kB / 3.935 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003088/13.46, allocations: 386.7 kB / 3.935 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003473/13.47, allocations: 0.9178 MB / 3.936 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004467/13.47, allocations: 1.322 MB / 3.937 GB, free: 23.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004723/13.48, allocations: 1.158 MB / 3.938 GB, free: 23.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.62e-05/13.48, allocations: 9.469 kB / 3.938 GB, free: 23.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01193/13.49, allocations: 2.813 MB / 3.941 GB, free: 23.08 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002333/13.49, allocations: 4.242 MB / 3.945 GB, free: 18.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.268e-05/13.49, allocations: 10.41 kB / 3.945 GB, free: 18.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006393/13.5, allocations: 0.5966 MB / 3.946 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004826/13.5, allocations: 438.4 kB / 3.946 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004647/13.51, allocations: 2.826 MB / 3.949 GB, free: 16.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005241/13.51, allocations: 229.4 kB / 3.949 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007764/13.51, allocations: 99.81 kB / 3.949 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/13.51, allocations: 6.656 kB / 3.949 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01009/13.52, allocations: 2.523 MB / 3.952 GB, free: 16.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.068e-05/13.52, allocations: 10.22 kB / 3.952 GB, free: 16.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/13.53, allocations: 199.8 kB / 3.952 GB, free: 16.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004942/13.53, allocations: 465.1 kB / 3.952 GB, free: 16.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/13.53, allocations: 1.872 MB / 3.954 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004073/13.54, allocations: 233.5 kB / 3.954 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003824/13.54, allocations: 88.12 kB / 3.955 GB, free: 14.84 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.001056/13.54, allocations: 295 kB / 3.955 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008768/13.54, allocations: 192.5 kB / 3.955 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01566/13.56, allocations: 7.344 MB / 3.962 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/13.56, allocations: 78.69 kB / 3.962 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.332e-05/13.56, allocations: 0.7656 kB / 3.962 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0122/13.57, allocations: 6.414 MB / 3.969 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02185/13.59, allocations: 10.21 MB / 3.979 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.348e-05/13.59, allocations: 2.656 kB / 3.979 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002933/13.59, allocations: 330.6 kB / 3.979 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005179/13.6, allocations: 1.6 MB / 3.98 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00056/13.6, allocations: 69.14 kB / 3.98 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004607/13.6, allocations: 3.468 MB / 3.984 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/13.6, allocations: 0 / 3.984 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/13.62, allocations: 6.938 MB / 3.991 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/13.62, allocations: 0.7044 MB / 3.991 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008521/13.62, allocations: 51.55 kB / 3.991 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003378/13.62, allocations: 194 kB / 3.992 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006281/13.63, allocations: 127.9 kB / 3.992 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002537/13.63, allocations: 66.36 kB / 3.992 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002735/13.63, allocations: 1.124 MB / 3.993 GB, free: 25.12 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.12e-07/13.63, allocations: 0 / 3.993 GB, free: 25.12 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01301/13.64, allocations: 2.703 MB / 3.995 GB, free: 25 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (164): * Single equations (assignments): 138 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03014/13.67, allocations: 9.763 MB / 4.005 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01206/13.68, allocations: 4.599 MB / 4.01 GB, free: 23.38 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.998e-06/13.68, allocations: 0 / 4.01 GB, free: 23.38 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004787/13.69, allocations: 2.223 MB / 4.012 GB, free: 23.24 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007865/13.7, allocations: 0.8958 MB / 4.013 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9463/14.64, allocations: 128.6 MB / 4.138 GB, free: 73.41 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002289/14.65, allocations: 2.136 MB / 4.14 GB, free: 72.66 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002795/14.65, allocations: 1.229 MB / 4.141 GB, free: 72.66 MB / 0.5573 GB Notification: Performance of SimCode: time 1.923e-06/14.65, allocations: 0 / 4.141 GB, free: 72.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.039/19.69, allocations: 123.9 MB / 4.262 GB, free: 38.17 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat