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.SeriesPipes12.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.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.02/2.02, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004316, allocations: 12 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2828, allocations: 48.7 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1117/0.3945, allocations: 77.01 MB / 408.2 MB, free: 1.371 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05851/0.4531, allocations: 32.53 MB / 440.7 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003107/0.4563, allocations: 95.25 kB / 440.8 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003964/0.4603, allocations: 1.081 MB / 441.9 MB, free: 15.6 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02275/0.483, allocations: 6.167 MB / 448.1 MB, free: 9.414 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02383/0.5069, allocations: 7.02 MB / 455.1 MB, free: 2.379 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008668/0.5156, allocations: 4.516 MB / 459.6 MB, free: 13.86 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002576/0.5182, allocations: 1.217 MB / 460.8 MB, free: 12.62 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005327/0.5236, allocations: 2.056 MB / 462.9 MB, free: 10.55 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3045/0.8281, allocations: 20.73 MB / 483.6 MB, free: 22.41 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007428/0.8289, allocations: 105.4 kB / 483.7 MB, free: 22.41 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02243/0.8514, allocations: 9.886 MB / 493.6 MB, free: 22.39 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.8529, allocations: 0.7485 MB / 494.3 MB, free: 22.39 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.8541, allocations: 0.5198 MB / 494.9 MB, free: 22.35 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.8675, allocations: 6.443 MB / 0.4896 GB, free: 21.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.383e-06/0.8675, allocations: 0 / 0.4896 GB, free: 21.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.86e-06/0.8675, allocations: 2.906 kB / 0.4896 GB, free: 21.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.346e-05/0.8676, allocations: 0 / 0.4896 GB, free: 21.95 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.0106/0.8782, allocations: 3.521 MB / 0.493 GB, free: 20.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.8783, allocations: 9.781 kB / 0.493 GB, free: 20.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007948/0.8863, allocations: 0.813 MB / 0.4938 GB, free: 20.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003902/0.8902, allocations: 1.569 MB / 0.4953 GB, free: 19.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002314/0.8905, allocations: 177.5 kB / 0.4955 GB, free: 19.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005097/0.891, allocations: 197.6 kB / 0.4957 GB, free: 19.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00993/0.901, allocations: 3.499 MB / 0.4991 GB, free: 18.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-05/0.9011, allocations: 18.98 kB / 0.4991 GB, free: 18.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003017/0.9014, allocations: 86.17 kB / 0.4992 GB, free: 18.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002591/0.9017, allocations: 183.5 kB / 0.4994 GB, free: 18.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01066/0.9123, allocations: 3.276 MB / 0.5026 GB, free: 16.11 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02064/0.933, allocations: 14.97 MB / 0.5172 GB, free: 2.309 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007398/0.9405, allocations: 2.308 MB / 0.5195 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04546/0.986, allocations: 19.01 MB / 0.538 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005979/0.992, allocations: 1.621 MB / 0.5396 GB, free: 10.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 7.138e-06/0.992, allocations: 4 kB / 0.5396 GB, free: 10.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=169): time 0.02876/1.021, allocations: 8.134 MB / 0.5476 GB, free: 4.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/1.021, allocations: 232.5 kB / 0.5478 GB, free: 4.137 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00302/1.024, allocations: 1.575 MB / 0.5493 GB, free: 2.957 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003841/1.024, allocations: 56.45 kB / 0.5494 GB, free: 2.918 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009847/1.025, allocations: 0.9537 MB / 0.5503 GB, free: 2.277 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009143/1.026, allocations: 0.5738 MB / 0.5509 GB, free: 1.785 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/1.027, allocations: 39.75 kB / 0.5509 GB, free: 1.777 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002771/1.027, allocations: 401.7 kB / 0.5513 GB, free: 1.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003027/1.03, allocations: 1.135 MB / 0.5524 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/1.034, allocations: 1.673 MB / 0.554 GB, free: 15.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003525/1.037, allocations: 1.383 MB / 0.5554 GB, free: 14.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.122e-05/1.037, allocations: 4 kB / 0.5554 GB, free: 14.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.0104/1.048, allocations: 3.844 MB / 0.5591 GB, free: 11.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005518/1.048, allocations: 0.5599 MB / 0.5597 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.192e-05/1.048, allocations: 16 kB / 0.5597 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01952/1.068, allocations: 2.971 MB / 0.5626 GB, free: 8.336 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/1.07, allocations: 330.2 kB / 0.5629 GB, free: 8.047 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007902/1.078, allocations: 3.481 MB / 0.5663 GB, free: 5.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002892/1.081, allocations: 252.7 kB / 0.5665 GB, free: 5.305 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003885/1.081, allocations: 105.6 kB / 0.5666 GB, free: 5.223 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/1.081, allocations: 4 kB / 0.5667 GB, free: 5.219 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009811/1.091, allocations: 3.625 MB / 0.5702 GB, free: 2.773 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.822e-05/1.091, allocations: 16 kB / 0.5702 GB, free: 2.758 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008683/1.1, allocations: 1.707 MB / 0.5719 GB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001927/1.102, allocations: 372.5 kB / 0.5722 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005792/1.107, allocations: 2.758 MB / 0.5749 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002243/1.11, allocations: 260.3 kB / 0.5752 GB, free: 14.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003031/1.11, allocations: 99.7 kB / 0.5753 GB, free: 14.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.001781/1.112, allocations: 0.7242 MB / 0.576 GB, free: 14.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005493/1.112, allocations: 197.6 kB / 0.5762 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01445/1.127, allocations: 7.736 MB / 0.5837 GB, free: 8.625 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001015/1.127, allocations: 88.67 kB / 0.5838 GB, free: 8.559 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/1.127, allocations: 0 / 0.5838 GB, free: 8.559 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0119/1.139, allocations: 6.65 MB / 0.5903 GB, free: 3.988 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02025/1.159, allocations: 10.86 MB / 0.6009 GB, free: 12.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/1.159, allocations: 0 / 0.6009 GB, free: 12.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002264/1.162, allocations: 395.6 kB / 0.6013 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/1.164, allocations: 384.3 kB / 0.6016 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003223/1.164, allocations: 71.7 kB / 0.6017 GB, free: 12.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002409/1.166, allocations: 2.567 MB / 0.6042 GB, free: 9.699 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.77e-06/1.166, allocations: 0 / 0.6042 GB, free: 9.699 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.181, allocations: 7.161 MB / 0.6112 GB, free: 4.863 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001994/1.183, allocations: 0.736 MB / 0.6119 GB, free: 4.234 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004996/1.183, allocations: 50.55 kB / 0.612 GB, free: 4.215 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001941/1.185, allocations: 193.2 kB / 0.6122 GB, free: 4.051 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003943/1.186, allocations: 144.8 kB / 0.6123 GB, free: 3.922 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002072/1.186, allocations: 68.75 kB / 0.6124 GB, free: 3.871 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002345/1.188, allocations: 1.165 MB / 0.6135 GB, free: 2.988 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.88e-07/1.188, allocations: 0 / 0.6135 GB, free: 2.988 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008863/1.197, allocations: 2.562 MB / 0.616 GB, free: 0.5859 MB / 474.7 MB 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,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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 Backend phase and start with SimCode phase: time 0.009351/1.206, allocations: 2.091 MB / 0.618 GB, free: 14.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01411/1.221, allocations: 5.334 MB / 0.6233 GB, free: 9.469 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.395e-06/1.221, allocations: 0 / 0.6233 GB, free: 9.469 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005302/1.226, allocations: 2.411 MB / 0.6256 GB, free: 7.086 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005414/1.231, allocations: 0.8681 MB / 0.6265 GB, free: 6.219 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0183/1.25, allocations: 9.222 MB / 0.6355 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002965/1.253, allocations: 2.249 MB / 0.6377 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009779/1.254, allocations: 195.4 kB / 0.6378 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of SimCode: time 2.081e-06/1.254, allocations: 0 / 0.6378 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.3647/1.618, allocations: 95.6 MB / 0.7312 GB, free: 153.7 MB / 0.4948 GB