Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.129/2.129, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.663e-05/1.675e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3151, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.882/2.197, allocations: 0.687 GB / 1.037 GB, free: 112.4 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/2.197, allocations: 72.39 kB / 1.037 GB, free: 112.4 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.736/4.933, allocations: 0.5441 GB / 1.581 GB, free: 37.95 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.006e-06/4.933, allocations: 0 / 1.581 GB, free: 37.95 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002293/4.934, allocations: 59.08 kB / 1.581 GB, free: 37.94 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01021/4.944, allocations: 3.023 MB / 1.584 GB, free: 36.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/4.944, allocations: 10.72 kB / 1.584 GB, free: 36.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004045/4.948, allocations: 443.5 kB / 1.584 GB, free: 36.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006714/4.955, allocations: 1.927 MB / 1.586 GB, free: 36.05 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/4.955, allocations: 58.91 kB / 1.586 GB, free: 36.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006892/4.956, allocations: 101.6 kB / 1.586 GB, free: 36.05 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005352/4.961, allocations: 2.109 MB / 1.588 GB, free: 36.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005579/4.967, allocations: 2.356 MB / 1.591 GB, free: 35.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.666e-05/4.967, allocations: 5.656 kB / 1.591 GB, free: 35.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003135/4.967, allocations: 10.77 kB / 1.591 GB, free: 35.61 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000221/4.967, allocations: 156.2 kB / 1.591 GB, free: 35.61 MB / 490.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.01818/4.986, allocations: 10.73 MB / 1.601 GB, free: 29.77 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003426/4.989, allocations: 1.708 MB / 1.603 GB, free: 29.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001976/4.991, allocations: 0.9604 MB / 1.604 GB, free: 29.44 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00112/4.992, allocations: 455.3 kB / 1.604 GB, free: 29.16 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00228/4.994, allocations: 1.041 MB / 1.605 GB, free: 29.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.191e-06/4.994, allocations: 0 / 1.605 GB, free: 29.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=176): time 0.04944/5.044, allocations: 9.339 MB / 1.614 GB, free: 28.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.014e-05/5.044, allocations: 253.8 kB / 1.615 GB, free: 27.84 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/5.046, allocations: 1.074 MB / 1.616 GB, free: 27.67 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005092/5.047, allocations: 29.02 kB / 1.616 GB, free: 27.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007006/5.047, allocations: 0.8693 MB / 1.617 GB, free: 27.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007097/5.048, allocations: 0.5768 MB / 1.617 GB, free: 26.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/5.048, allocations: 0 / 1.617 GB, free: 26.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/5.049, allocations: 396 kB / 1.618 GB, free: 26.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/5.051, allocations: 0.9666 MB / 1.618 GB, free: 26.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00249/5.053, allocations: 1.395 MB / 1.62 GB, free: 26.05 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01294/5.066, allocations: 2.306 MB / 1.622 GB, free: 26.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.658e-05/5.066, allocations: 7 kB / 1.622 GB, free: 26.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01741/5.084, allocations: 3.816 MB / 1.626 GB, free: 25.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008618/5.084, allocations: 4.161 MB / 1.63 GB, free: 21.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/5.084, allocations: 12.88 kB / 1.63 GB, free: 21.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005211/5.085, allocations: 176.6 kB / 1.63 GB, free: 21.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003399/5.088, allocations: 0.5432 MB / 1.631 GB, free: 21.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/5.09, allocations: 2.341 MB / 1.633 GB, free: 19.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00314/5.093, allocations: 172.2 kB / 1.633 GB, free: 19.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005455/5.094, allocations: 188.5 kB / 1.633 GB, free: 19.44 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/5.094, allocations: 3.562 kB / 1.633 GB, free: 19.44 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.015/5.109, allocations: 3.44 MB / 1.637 GB, free: 19.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/5.109, allocations: 11.06 kB / 1.637 GB, free: 19.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004427/5.109, allocations: 172.1 kB / 1.637 GB, free: 19.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/5.112, allocations: 0.5331 MB / 1.637 GB, free: 19.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/5.114, allocations: 2.342 MB / 1.64 GB, free: 17.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002474/5.116, allocations: 164.8 kB / 1.64 GB, free: 17.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004358/5.117, allocations: 189.3 kB / 1.64 GB, free: 17.18 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007713/5.118, allocations: 226.1 kB / 1.64 GB, free: 16.97 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005936/5.118, allocations: 187.9 kB / 1.64 GB, free: 16.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01844/5.137, allocations: 3.892 MB / 1.644 GB, free: 16.69 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/5.137, allocations: 20.34 kB / 1.644 GB, free: 16.69 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/5.137, allocations: 0 / 1.644 GB, free: 16.69 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01413/5.151, allocations: 3.389 MB / 1.647 GB, free: 15.72 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02394/5.175, allocations: 6.878 MB / 1.654 GB, free: 29.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/5.175, allocations: 3.781 kB / 1.654 GB, free: 29.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0026/5.177, allocations: 409.7 kB / 1.655 GB, free: 29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005855/5.178, allocations: 168.8 kB / 1.655 GB, free: 28.95 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003721/5.178, allocations: 72.38 kB / 1.655 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002617/5.181, allocations: 3.029 MB / 1.658 GB, free: 26.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/5.181, allocations: 11.56 kB / 1.658 GB, free: 26.04 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01667/5.198, allocations: 5.088 MB / 1.663 GB, free: 22.07 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/5.2, allocations: 0.4994 MB / 1.663 GB, free: 21.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005759/5.2, allocations: 27.52 kB / 1.663 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/5.202, allocations: 94.02 kB / 1.663 GB, free: 21.52 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003464/5.202, allocations: 161.2 kB / 1.663 GB, free: 21.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003298/5.203, allocations: 145.3 kB / 1.664 GB, free: 21.29 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001405/5.204, allocations: 0.7915 MB / 1.664 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.277e-06/5.204, allocations: 0 / 1.664 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007026/5.211, allocations: 1.79 MB / 1.666 GB, free: 18.83 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (184): * Single equations (assignments): 178 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006567/5.218, allocations: 2.657 MB / 1.669 GB, free: 16.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008116/5.226, allocations: 4.061 MB / 1.673 GB, free: 13 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/5.226, allocations: 4 kB / 1.673 GB, free: 13 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002956/5.229, allocations: 1.409 MB / 1.674 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005153/5.234, allocations: 0.7757 MB / 1.675 GB, free: 11.13 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01698/5.251, allocations: 5.468 MB / 1.68 GB, free: 6.523 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001976/5.253, allocations: 1.7 MB / 1.682 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002247/5.256, allocations: 340.8 kB / 1.682 GB, free: 4.84 MB / 0.4948 GB Notification: Performance of SimCode: time 2.115e-06/5.256, allocations: 0 / 1.682 GB, free: 4.84 MB / 0.4948 GB Notification: Performance of Templates: time 0.4542/5.71, allocations: 81.81 MB / 1.762 GB, free: 60.82 MB / 0.5105 GB