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.LumpedPipeInitialization.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.16/2.16, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004379/0.0004382, allocations: 12 kB / 314.3 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.276, allocations: 54.87 MB / 369.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.07972/0.3558, allocations: 54.36 MB / 423.5 MB, free: 4.242 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.046/0.4018, allocations: 26.79 MB / 450.3 MB, free: 9.395 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001849/0.4037, allocations: 47.56 kB / 450.4 MB, free: 9.348 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002303/0.406, allocations: 0.6065 MB / 451 MB, free: 8.738 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01927/0.4253, allocations: 5.29 MB / 456.3 MB, free: 3.434 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01661/0.442, allocations: 4.556 MB / 460.8 MB, free: 14.87 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004719/0.4467, allocations: 2.288 MB / 463.1 MB, free: 12.57 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.4483, allocations: 0.7067 MB / 463.8 MB, free: 11.86 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3622/0.8106, allocations: 49.99 MB / 0.5018 GB, free: 4.805 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05443/0.865, allocations: 25.79 MB / 0.527 GB, free: 15.51 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003472/0.8654, allocations: 68 kB / 0.527 GB, free: 15.45 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02111/0.8865, allocations: 8.869 MB / 0.5357 GB, free: 8.551 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007842/0.8874, allocations: 365.6 kB / 0.536 GB, free: 8.34 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005991/0.888, allocations: 307.3 kB / 0.5363 GB, free: 8.164 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.9002, allocations: 4.946 MB / 0.5412 GB, free: 3.957 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.9002, allocations: 4.031 kB / 0.5412 GB, free: 3.957 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.239e-06/0.9002, allocations: 0 / 0.5412 GB, free: 3.957 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.369e-05/0.9003, allocations: 4 kB / 0.5412 GB, free: 3.953 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.012/0.9123, allocations: 2.362 MB / 0.5435 GB, free: 1.703 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.9123, allocations: 8.031 kB / 0.5435 GB, free: 1.695 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006714/0.9191, allocations: 484 kB / 0.5439 GB, free: 1.27 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003381/0.9225, allocations: 0.9362 MB / 0.5448 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002737/0.9228, allocations: 148.3 kB / 0.545 GB, free: 480 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003676/0.9232, allocations: 101 kB / 0.5451 GB, free: 416 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008461/0.9317, allocations: 1.871 MB / 0.5469 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.295e-05/0.9318, allocations: 3.562 kB / 0.5469 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002777/0.9321, allocations: 51.03 kB / 0.547 GB, free: 14.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002251/0.9323, allocations: 85.27 kB / 0.547 GB, free: 14.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009044/0.9414, allocations: 1.794 MB / 0.5488 GB, free: 13.68 MB / 442.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.01614/0.9576, allocations: 8.549 MB / 0.5571 GB, free: 6.121 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004399/0.962, allocations: 1.399 MB / 0.5585 GB, free: 4.992 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1577/1.12, allocations: 64.17 MB / 0.6212 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003209/1.123, allocations: 0.8977 MB / 0.6221 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=82): time 4.913e-06/1.123, allocations: 5.641 kB / 0.6221 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=86): time 0.01555/1.139, allocations: 4.604 MB / 0.6266 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002636/1.139, allocations: 409.2 kB / 0.6269 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001911/1.141, allocations: 1.053 MB / 0.628 GB, free: 8.812 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001789/1.141, allocations: 43.02 kB / 0.628 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005425/1.142, allocations: 0.5686 MB / 0.6286 GB, free: 8.375 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003814/1.142, allocations: 302.7 kB / 0.6289 GB, free: 8.125 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-05/1.142, allocations: 24.69 kB / 0.6289 GB, free: 8.121 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002215/1.142, allocations: 362.7 kB / 0.6292 GB, free: 7.777 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/1.144, allocations: 0.534 MB / 0.6298 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/1.146, allocations: 1.041 MB / 0.6308 GB, free: 6.422 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001839/1.148, allocations: 0.6987 MB / 0.6315 GB, free: 6.008 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/1.148, allocations: 7.953 kB / 0.6315 GB, free: 6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.005122/1.153, allocations: 1.879 MB / 0.6333 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004803/1.153, allocations: 0.5027 MB / 0.6338 GB, free: 4.148 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.932e-05/1.153, allocations: 16.28 kB / 0.6338 GB, free: 4.137 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007826/1.161, allocations: 1.142 MB / 0.6349 GB, free: 3.117 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/1.163, allocations: 255.4 kB / 0.6352 GB, free: 2.898 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00309/1.166, allocations: 1.501 MB / 0.6366 GB, free: 1.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/1.167, allocations: 131.2 kB / 0.6368 GB, free: 1.664 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001902/1.168, allocations: 69.48 kB / 0.6368 GB, free: 1.609 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/1.168, allocations: 4 kB / 0.6368 GB, free: 1.605 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004762/1.172, allocations: 1.712 MB / 0.6385 GB, free: 0.5195 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.992e-05/1.173, allocations: 12 kB / 0.6385 GB, free: 0.5078 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001898/1.174, allocations: 384.4 kB / 0.6389 GB, free: 212 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/1.176, allocations: 282.8 kB / 0.6391 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001977/1.178, allocations: 1.072 MB / 0.6402 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002109/1.18, allocations: 123.7 kB / 0.6403 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003788/1.18, allocations: 70.98 kB / 0.6404 GB, free: 14.93 MB / 0.5261 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.heatTransfer.states[1].phase,pipe.volume.inFlow[2],pipe.volume.inFlow[1],sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.002065/1.183, allocations: 478.5 kB / 0.6408 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006931/1.183, allocations: 130.5 kB / 0.641 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0158/1.199, allocations: 4.046 MB / 0.6449 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001234/1.199, allocations: 46 kB / 0.6449 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.855e-05/1.199, allocations: 3 kB / 0.645 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.757e-05/1.199, allocations: 12.09 kB / 0.645 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02094/1.22, allocations: 5.539 MB / 0.6504 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.485e-05/1.22, allocations: 6.609 kB / 0.6504 GB, free: 8.152 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/1.223, allocations: 167.2 kB / 0.6505 GB, free: 8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01644/1.239, allocations: 1.56 MB / 0.6521 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000323/1.239, allocations: 24.98 kB / 0.6521 GB, free: 6.578 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005218/1.245, allocations: 2.084 MB / 0.6541 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/1.245, allocations: 0 / 0.6541 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01577/1.26, allocations: 3.88 MB / 0.6579 GB, free: 2.395 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002293/1.263, allocations: 0.5319 MB / 0.6584 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003365/1.263, allocations: 26.66 kB / 0.6585 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/1.264, allocations: 90.08 kB / 0.6585 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/1.265, allocations: 78.08 kB / 0.6586 GB, free: 1.816 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/1.265, allocations: 34.73 kB / 0.6586 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001985/1.267, allocations: 1.055 MB / 0.6597 GB, free: 1.051 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.74e-07/1.267, allocations: 2.734 kB / 0.6597 GB, free: 1.051 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.2687/1.535, allocations: 1.861 MB / 0.6615 GB, free: 231.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.007354/1.543, allocations: 1.665 MB / 0.6631 GB, free: 231.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006582/1.549, allocations: 2.479 MB / 0.6655 GB, free: 231 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.55, allocations: 0 / 0.6655 GB, free: 231 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002259/1.552, allocations: 1.041 MB / 0.6666 GB, free: 230.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004034/1.556, allocations: 0.6328 MB / 0.6672 GB, free: 230.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007639/1.564, allocations: 4.487 MB / 0.6716 GB, free: 228.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/1.565, allocations: 1.474 MB / 0.673 GB, free: 227.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005011/1.565, allocations: 113.9 kB / 0.6731 GB, free: 227.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.749e-06/1.565, allocations: 0 / 0.6731 GB, free: 227.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.08354/1.649, allocations: 56.99 MB / 0.7288 GB, free: 175.7 MB / 0.5261 GB