Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.907/1.907, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.204e-05, allocations: 8 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08888/0.08894, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.056/6.145, allocations: 2.567 GB / 2.886 GB, free: 58.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/6.146, allocations: 71.97 kB / 2.886 GB, free: 58.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.714/10.86, allocations: 0.9822 GB / 3.868 GB, free: 23.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.166e-06/10.86, allocations: 0 / 3.868 GB, free: 23.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003079/10.86, allocations: 69.06 kB / 3.868 GB, free: 23.17 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.01635/10.88, allocations: 4.109 MB / 3.872 GB, free: 21.38 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/10.88, allocations: 7.281 kB / 3.872 GB, free: 21.38 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009393/10.89, allocations: 0.9153 MB / 3.873 GB, free: 21.22 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008042/10.89, allocations: 2.175 MB / 3.875 GB, free: 20.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/10.89, allocations: 198 kB / 3.875 GB, free: 20.76 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/10.9, allocations: 227.8 kB / 3.876 GB, free: 20.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01271/10.91, allocations: 3.857 MB / 3.879 GB, free: 20.14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.854e-05/10.91, allocations: 14.2 kB / 3.879 GB, free: 20.14 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006592/10.91, allocations: 95.78 kB / 3.879 GB, free: 20.14 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002682/10.91, allocations: 176.3 kB / 3.88 GB, free: 20.13 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/10.92, allocations: 3.424 MB / 3.883 GB, free: 20.1 MB / 474.7 MB 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.02733/10.95, allocations: 16.72 MB / 3.899 GB, free: 25.99 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008374/10.96, allocations: 3.032 MB / 3.902 GB, free: 25.38 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002532/10.96, allocations: 1.219 MB / 3.903 GB, free: 25.37 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0434/11, allocations: 18.59 MB / 3.922 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006063/11.01, allocations: 1.84 MB / 3.923 GB, free: 13.54 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 7.141e-06/11.01, allocations: 0 / 3.923 GB, free: 13.54 MB / 490.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: junctionVolume.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=208): time 0.04001/11.05, allocations: 10.89 MB / 3.934 GB, free: 12.25 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/11.05, allocations: 260.2 kB / 3.934 GB, free: 11.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002891/11.05, allocations: 1.421 MB / 3.936 GB, free: 11.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006046/11.05, allocations: 68.33 kB / 3.936 GB, free: 11.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009614/11.05, allocations: 0.9796 MB / 3.937 GB, free: 11.21 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/11.05, allocations: 0.6986 MB / 3.937 GB, free: 10.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/11.05, allocations: 49.78 kB / 3.937 GB, free: 10.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002794/11.05, allocations: 407.1 kB / 3.938 GB, free: 10.46 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002524/11.06, allocations: 1.115 MB / 3.939 GB, free: 10.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00315/11.06, allocations: 1.655 MB / 3.94 GB, free: 9.883 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003225/11.06, allocations: 1.389 MB / 3.942 GB, free: 9.777 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.107e-05/11.06, allocations: 5.562 kB / 3.942 GB, free: 9.777 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.008663/11.07, allocations: 3.344 MB / 3.945 GB, free: 9.535 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002763/11.08, allocations: 5.47 MB / 3.95 GB, free: 19.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.184e-05/11.08, allocations: 12.59 kB / 3.95 GB, free: 19.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/11.08, allocations: 341.9 kB / 3.951 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003524/11.08, allocations: 0.5943 MB / 3.951 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003021/11.08, allocations: 3.098 MB / 3.954 GB, free: 17.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004186/11.09, allocations: 340.1 kB / 3.955 GB, free: 17.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007428/11.09, allocations: 120.2 kB / 3.955 GB, free: 17.11 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/11.09, allocations: 4.938 kB / 3.955 GB, free: 17.11 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008159/11.1, allocations: 3.182 MB / 3.958 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.931e-05/11.1, allocations: 11.38 kB / 3.958 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/11.1, allocations: 330.6 kB / 3.958 GB, free: 16.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003396/11.1, allocations: 0.5926 MB / 3.959 GB, free: 16.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002836/11.1, allocations: 3.095 MB / 3.962 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/11.11, allocations: 329.6 kB / 3.962 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006543/11.11, allocations: 118.2 kB / 3.962 GB, free: 14.15 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 () * 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.001007/11.11, allocations: 332.2 kB / 3.963 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006286/11.11, allocations: 222.1 kB / 3.963 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01459/11.13, allocations: 8.112 MB / 3.971 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.995e-05/11.13, allocations: 91.64 kB / 3.971 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/11.13, allocations: 4 kB / 3.971 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01219/11.14, allocations: 7.032 MB / 3.978 GB, free: 8.738 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.371/11.51, allocations: 13.25 MB / 3.991 GB, free: 51.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.878e-05/11.51, allocations: 6.828 kB / 3.991 GB, free: 51.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002631/11.51, allocations: 485.6 kB / 3.991 GB, free: 51.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/11.51, allocations: 446.6 kB / 3.992 GB, free: 51.46 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000524/11.51, allocations: 84.92 kB / 3.992 GB, free: 51.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002158/11.52, allocations: 3.222 MB / 3.995 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/11.52, allocations: 11.91 kB / 3.995 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01617/11.53, allocations: 8.085 MB / 4.003 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002416/11.53, allocations: 0.7949 MB / 4.003 GB, free: 47.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000988/11.54, allocations: 68.94 kB / 4.004 GB, free: 47.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003191/11.54, allocations: 230.2 kB / 4.004 GB, free: 47.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006734/11.54, allocations: 188.9 kB / 4.004 GB, free: 47.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003296/11.54, allocations: 91.7 kB / 4.004 GB, free: 47.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002691/11.54, allocations: 1.178 MB / 4.005 GB, free: 47.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.105e-06/11.54, allocations: 3.656 kB / 4.005 GB, free: 47.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01237/11.56, allocations: 2.888 MB / 4.008 GB, free: 47.43 MB / 0.4948 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) * 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.01281/11.57, allocations: 3.012 MB / 4.011 GB, free: 47.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01271/11.58, allocations: 5.471 MB / 4.016 GB, free: 46.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/11.58, allocations: 2.219 kB / 4.016 GB, free: 46.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006311/11.59, allocations: 2.88 MB / 4.019 GB, free: 46.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007953/11.6, allocations: 1.128 MB / 4.02 GB, free: 46.74 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4235/12.02, allocations: 126.2 MB / 4.143 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0022/12.02, allocations: 2.336 MB / 4.146 GB, free: 18.84 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/12.02, allocations: 237.4 kB / 4.146 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of SimCode: time 2.155e-06/12.02, allocations: 0 / 4.146 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of Templates: time 0.635/12.66, allocations: 136.9 MB / 4.28 GB, free: 28.99 MB / 0.4948 GB