Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00433/0.004335, allocations: 367.4 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.022/4.022, allocations: 388.9 MB / 405.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.006492/0.006492, allocations: 233.2 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4937/0.4937, allocations: 80.02 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006801/0.0006804, allocations: 18.11 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1399, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 1.062/1.202, allocations: 229.1 MB / 0.9038 GB, free: 7.203 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.03824/1.24, allocations: 18.24 MB / 0.9217 GB, free: 7.016 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003617/1.244, allocations: 106.4 kB / 0.9218 GB, free: 7.016 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003754/1.248, allocations: 0.8057 MB / 0.9225 GB, free: 6.996 MB / 474.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01731/1.265, allocations: 4.31 MB / 0.9268 GB, free: 6.793 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0225/1.288, allocations: 5.218 MB / 0.9319 GB, free: 6.617 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.01319/1.301, allocations: 7.976 MB / 0.9396 GB, free: 6.609 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003342/1.304, allocations: 1.239 MB / 0.9409 GB, free: 6.305 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006311/1.311, allocations: 2.121 MB / 0.9429 GB, free: 5.961 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006217/1.317, allocations: 2.418 MB / 0.9453 GB, free: 5.438 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008634/1.318, allocations: 111.8 kB / 0.9454 GB, free: 5.434 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01145/1.329, allocations: 3.338 MB / 0.9486 GB, free: 4.707 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001835/1.331, allocations: 0.8018 MB / 0.9494 GB, free: 4.434 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001318/1.332, allocations: 478.8 kB / 0.9499 GB, free: 4.398 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008997/1.341, allocations: 3.915 MB / 0.9537 GB, free: 2.641 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/1.341, allocations: 3 kB / 0.9537 GB, free: 2.641 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.326e-06/1.342, allocations: 0 / 0.9537 GB, free: 2.641 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.916e-05/1.342, allocations: 0 / 0.9537 GB, free: 2.641 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01033/1.352, allocations: 2.966 MB / 0.9566 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/1.352, allocations: 9.062 kB / 0.9566 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0042/1.356, allocations: 435.8 kB / 0.957 GB, free: 0.6172 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00614/1.362, allocations: 1.869 MB / 0.9589 GB, free: 15.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/1.363, allocations: 133.3 kB / 0.959 GB, free: 15.81 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006832/1.363, allocations: 164.7 kB / 0.9591 GB, free: 15.81 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007224/1.371, allocations: 2.531 MB / 0.9616 GB, free: 15.01 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.736e-05/1.371, allocations: 12.48 kB / 0.9616 GB, free: 15 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003263/1.371, allocations: 70.34 kB / 0.9617 GB, free: 15 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004081/1.371, allocations: 188.4 kB / 0.9619 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007149/1.379, allocations: 2.224 MB / 0.964 GB, free: 14.61 MB / 490.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.02495/1.404, allocations: 10.73 MB / 0.9745 GB, free: 5.707 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005318/1.409, allocations: 1.776 MB / 0.9763 GB, free: 4.371 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003054/1.412, allocations: 1.041 MB / 0.9773 GB, free: 3.703 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004254/1.416, allocations: 2.439 MB / 0.9797 GB, free: 1.008 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003365/1.42, allocations: 1.156 MB / 0.9808 GB, free: 160 kB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 7.584e-06/1.42, allocations: 0 / 0.9808 GB, free: 160 kB / 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: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.04743/1.467, allocations: 10.51 MB / 0.991 GB, free: 7.965 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/1.467, allocations: 179.8 kB / 0.9912 GB, free: 7.754 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002929/1.47, allocations: 1.488 MB / 0.9927 GB, free: 6.625 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0005609/1.471, allocations: 61.27 kB / 0.9927 GB, free: 6.582 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009758/1.472, allocations: 0.8934 MB / 0.9936 GB, free: 6.031 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009937/1.473, allocations: 0.6226 MB / 0.9942 GB, free: 5.496 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/1.473, allocations: 42.75 kB / 0.9942 GB, free: 5.488 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0002211/1.474, allocations: 391.1 kB / 0.9946 GB, free: 5.133 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003122/1.477, allocations: 1.02 MB / 0.9956 GB, free: 4.449 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003771/1.48, allocations: 1.512 MB / 0.9971 GB, free: 3.145 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003792/1.484, allocations: 1.307 MB / 0.9984 GB, free: 2.297 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.129e-05/1.484, allocations: 4 kB / 0.9984 GB, free: 2.293 MB / 0.4949 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.009614/1.494, allocations: 3.106 MB / 1.001 GB, free: 84 kB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004992/1.495, allocations: 0.5368 MB / 1.002 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.771e-05/1.495, allocations: 16 kB / 1.002 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000732/1.495, allocations: 194.3 kB / 1.002 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004936/1.5, allocations: 0.5581 MB / 1.003 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/1.503, allocations: 2.335 MB / 1.005 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003963/1.507, allocations: 209.8 kB / 1.005 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007421/1.507, allocations: 192.6 kB / 1.005 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/1.507, allocations: 4 kB / 1.005 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008783/1.516, allocations: 2.847 MB / 1.008 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.791e-05/1.516, allocations: 15.98 kB / 1.008 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006694/1.517, allocations: 197.1 kB / 1.008 GB, free: 9.895 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004761/1.522, allocations: 0.5491 MB / 1.009 GB, free: 9.391 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002214/1.524, allocations: 2.336 MB / 1.011 GB, free: 7.047 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/1.528, allocations: 205.9 kB / 1.011 GB, free: 6.879 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007076/1.528, allocations: 192.5 kB / 1.012 GB, free: 6.711 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 253 * 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.002129/1.531, allocations: 0.6931 MB / 1.012 GB, free: 6.203 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006935/1.531, allocations: 205.6 kB / 1.012 GB, free: 6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/1.544, allocations: 3.489 MB / 1.016 GB, free: 3.484 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00722/1.551, allocations: 2.72 MB / 1.018 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/1.551, allocations: 0 / 1.018 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002022/1.553, allocations: 0.5218 MB / 1.019 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008429/1.554, allocations: 54.19 kB / 1.019 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002643/1.557, allocations: 133.8 kB / 1.019 GB, free: 0.8242 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004973/1.557, allocations: 154.2 kB / 1.019 GB, free: 0.6914 MB / 0.5105 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01065/1.568, allocations: 3.018 MB / 1.022 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01161/1.58, allocations: 4.229 MB / 1.026 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003224/1.583, allocations: 1.245 MB / 1.028 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002155/1.585, allocations: 0.9776 MB / 1.029 GB, free: 9.965 MB / 0.5261 GB Notification: Performance of Backend: time 7.01e-07/1.585, allocations: 4 kB / 1.029 GB, free: 9.961 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01793/1.603, allocations: 4.967 MB / 1.033 GB, free: 6.184 MB / 0.5261 GB Notification: Performance of SimCode: time 0.01543/1.619, allocations: 5.737 MB / 1.039 GB, free: 0.7656 MB / 0.5261 GB Notification: Performance of Templates: time 0.4767/2.095, allocations: 67.05 MB / 1.104 GB, free: 285.9 MB / 0.5886 GB