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.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.649/2.649, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.34e-05/3.345e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4208, allocations: 54.85 MB / 364.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.976/8.396, allocations: 2.656 GB / 3.012 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/8.397, allocations: 71.09 kB / 3.012 GB, free: 101.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.371/12.77, allocations: 0.7947 GB / 3.807 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.276e-06/12.77, allocations: 0 / 3.807 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004016/12.77, allocations: 69.78 kB / 3.807 GB, free: 25.48 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02116/12.79, allocations: 3.954 MB / 3.811 GB, free: 23.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/12.79, allocations: 11.09 kB / 3.811 GB, free: 23.5 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00133/12.79, allocations: 285.7 kB / 3.811 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008836/12.8, allocations: 0.8394 MB / 3.812 GB, free: 23.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008584/12.81, allocations: 2.1 MB / 3.814 GB, free: 22.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/12.81, allocations: 172.3 kB / 3.814 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/12.81, allocations: 200.2 kB / 3.814 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01292/12.82, allocations: 3.706 MB / 3.818 GB, free: 22.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.585e-05/12.82, allocations: 6.188 kB / 3.818 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004666/12.82, allocations: 85.61 kB / 3.818 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003302/12.82, allocations: 169.8 kB / 3.818 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01203/12.84, allocations: 3.42 MB / 3.821 GB, free: 22.14 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.03152/12.87, allocations: 14.77 MB / 3.836 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006826/12.87, allocations: 2.129 MB / 3.838 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/12.88, allocations: 1.06 MB / 3.839 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06101/12.94, allocations: 18.94 MB / 3.857 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005955/12.94, allocations: 1.69 MB / 3.859 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001821/12.95, allocations: 196.4 kB / 3.859 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 6.522e-06/12.95, allocations: 4 kB / 3.859 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.0296/12.98, allocations: 7.312 MB / 3.866 GB, free: 6.902 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003011/12.98, allocations: 413.9 kB / 3.867 GB, free: 6.41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003939/12.98, allocations: 1.5 MB / 3.868 GB, free: 5.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006375/12.98, allocations: 61.7 kB / 3.868 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001173/12.98, allocations: 0.9123 MB / 3.869 GB, free: 4.145 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001125/12.98, allocations: 0.59 MB / 3.87 GB, free: 3.609 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/12.98, allocations: 44 kB / 3.87 GB, free: 3.566 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002428/12.98, allocations: 389.6 kB / 3.87 GB, free: 3.203 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002994/12.99, allocations: 1.064 MB / 3.871 GB, free: 2.254 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003512/12.99, allocations: 1.527 MB / 3.873 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005631/13, allocations: 1.445 MB / 3.874 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.617e-05/13, allocations: 0 / 3.874 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009692/13.01, allocations: 3.185 MB / 3.877 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00207/13.01, allocations: 4.433 MB / 3.882 GB, free: 8.246 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.164e-05/13.01, allocations: 23.78 kB / 3.882 GB, free: 8.227 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008804/13.02, allocations: 0.9552 MB / 3.882 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004182/13.02, allocations: 471.5 kB / 3.883 GB, free: 7.133 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/13.03, allocations: 3.161 MB / 3.886 GB, free: 4.082 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004155/13.03, allocations: 232.1 kB / 3.886 GB, free: 3.902 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004509/13.03, allocations: 109.3 kB / 3.886 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/13.03, allocations: 4 kB / 3.886 GB, free: 3.805 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00938/13.04, allocations: 2.976 MB / 3.889 GB, free: 1.199 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.938e-05/13.04, allocations: 15.61 kB / 3.889 GB, free: 1.188 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/13.04, allocations: 337.6 kB / 3.89 GB, free: 0.9141 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004251/13.05, allocations: 0.4899 MB / 3.89 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6078/13.65, allocations: 4.038 MB / 3.894 GB, free: 53.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004605/13.66, allocations: 235.3 kB / 3.894 GB, free: 53.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007845/13.66, allocations: 103.1 kB / 3.894 GB, free: 53.32 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001224/13.66, allocations: 309.5 kB / 3.895 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/13.66, allocations: 210.6 kB / 3.895 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02854/13.69, allocations: 7.739 MB / 3.902 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002526/13.69, allocations: 83.52 kB / 3.902 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-05/13.69, allocations: 0 / 3.902 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02344/13.71, allocations: 6.784 MB / 3.909 GB, free: 51.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02867/13.74, allocations: 10.78 MB / 3.92 GB, free: 51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-05/13.74, allocations: 6.594 kB / 3.92 GB, free: 51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/13.75, allocations: 343.8 kB / 3.92 GB, free: 51 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00815/13.75, allocations: 2.501 MB / 3.922 GB, free: 50.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006202/13.75, allocations: 72.5 kB / 3.922 GB, free: 50.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004564/13.76, allocations: 4.093 MB / 3.926 GB, free: 48.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/13.76, allocations: 6.859 kB / 3.926 GB, free: 48.83 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/13.77, allocations: 7.676 MB / 3.934 GB, free: 48.15 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/13.78, allocations: 0.7554 MB / 3.935 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008862/13.78, allocations: 52.78 kB / 3.935 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003372/13.78, allocations: 188.3 kB / 3.935 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006308/13.78, allocations: 140.2 kB / 3.935 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002824/13.78, allocations: 75.56 kB / 3.935 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002825/13.79, allocations: 1.235 MB / 3.936 GB, free: 47.71 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.12e-07/13.79, allocations: 0 / 3.936 GB, free: 47.71 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01318/13.8, allocations: 2.827 MB / 3.939 GB, free: 47.71 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03159/13.83, allocations: 10.22 MB / 3.949 GB, free: 46.34 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01345/13.84, allocations: 5.301 MB / 3.954 GB, free: 45.77 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/13.84, allocations: 2.375 kB / 3.954 GB, free: 45.77 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005703/13.85, allocations: 2.356 MB / 3.957 GB, free: 45.62 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008392/13.86, allocations: 0.8891 MB / 3.957 GB, free: 45.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4366/14.29, allocations: 129.1 MB / 4.084 GB, free: 15 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005121/14.3, allocations: 2.246 MB / 4.086 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004938/14.3, allocations: 1.317 MB / 4.087 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of SimCode: time 2.024e-06/14.3, allocations: 4 kB / 4.087 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.747/20.05, allocations: 130.8 MB / 4.215 GB, free: 48.63 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat