Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002675/0.002678, allocations: 351.5 kB / 15.95 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.369/3.369, allocations: 341.5 MB / 358.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003573/0.003573, allocations: 228.4 kB / 397.9 MB, free: 4.973 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.521/0.521, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004557/0.0004559, allocations: 12 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0824/0.08289, allocations: 48.71 MB / 0.6067 GB, free: 4.648 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.3708/0.4538, allocations: 86.04 MB / 0.6908 GB, free: 26.95 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06133/0.5152, allocations: 34.92 MB / 0.7249 GB, free: 7.996 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003308/0.5185, allocations: 99.31 kB / 0.725 GB, free: 7.898 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005304/0.5239, allocations: 0.9478 MB / 0.7259 GB, free: 6.945 MB / 378.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+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.1+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.1+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.03728/0.5612, allocations: 6.597 MB / 0.7323 GB, free: 356 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03786/0.5991, allocations: 7.033 MB / 0.7392 GB, free: 9.344 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01466/0.6138, allocations: 7.842 MB / 0.7469 GB, free: 1.48 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003526/0.6174, allocations: 1.221 MB / 0.7481 GB, free: 280 kB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006663/0.6241, allocations: 2.14 MB / 0.7501 GB, free: 14.12 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3791/1.003, allocations: 21.88 MB / 0.7715 GB, free: 28.59 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001088/1.004, allocations: 107.4 kB / 0.7716 GB, free: 28.59 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03009/1.034, allocations: 9.455 MB / 0.7808 GB, free: 28.57 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002227/1.037, allocations: 0.8115 MB / 0.7816 GB, free: 28.57 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/1.039, allocations: 0.5137 MB / 0.7821 GB, free: 28.54 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/1.054, allocations: 6.459 MB / 0.7884 GB, free: 28.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/1.054, allocations: 2.344 kB / 0.7884 GB, free: 28.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.378e-06/1.054, allocations: 0 / 0.7884 GB, free: 28.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001389/1.055, allocations: 3.844 kB / 0.7885 GB, free: 28.33 MB / 410.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.01412/1.069, allocations: 3.517 MB / 0.7919 GB, free: 26.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/1.069, allocations: 9.562 kB / 0.7919 GB, free: 26.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008194/1.077, allocations: 0.8221 MB / 0.7927 GB, free: 26.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01706/1.094, allocations: 6.403 MB / 0.799 GB, free: 25.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003412/1.094, allocations: 176.4 kB / 0.7991 GB, free: 25.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008866/1.095, allocations: 205.2 kB / 0.7993 GB, free: 25.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01257/1.108, allocations: 3.498 MB / 0.8027 GB, free: 25.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.008e-05/1.108, allocations: 6.625 kB / 0.8027 GB, free: 25.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000424/1.109, allocations: 84.27 kB / 0.8028 GB, free: 25.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003715/1.109, allocations: 187.7 kB / 0.803 GB, free: 25.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01316/1.122, allocations: 3.278 MB / 0.8062 GB, free: 24.73 MB / 410.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.03764/1.16, allocations: 14.96 MB / 0.8208 GB, free: 11.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0122/1.172, allocations: 2.307 MB / 0.8231 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004393/1.176, allocations: 1.121 MB / 0.8241 GB, free: 9.223 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07081/1.247, allocations: 19.01 MB / 0.8427 GB, free: 4.367 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007256/1.255, allocations: 1.613 MB / 0.8443 GB, free: 3.113 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 7.164e-06/1.255, allocations: 0 / 0.8443 GB, free: 3.113 MB / 426.7 MB Notification: Performance of matching and sorting (n=169): time 0.04238/1.297, allocations: 8.753 MB / 0.8528 GB, free: 12.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/1.297, allocations: 233.3 kB / 0.8531 GB, free: 12.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/1.301, allocations: 1.558 MB / 0.8546 GB, free: 10.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004857/1.301, allocations: 56.45 kB / 0.8546 GB, free: 10.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/1.302, allocations: 1.005 MB / 0.8556 GB, free: 10.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/1.303, allocations: 0.5846 MB / 0.8562 GB, free: 9.777 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002392/1.304, allocations: 47.5 kB / 0.8562 GB, free: 9.766 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002368/1.304, allocations: 383.5 kB / 0.8566 GB, free: 9.418 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004043/1.308, allocations: 1.138 MB / 0.8577 GB, free: 8.641 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004741/1.313, allocations: 1.663 MB / 0.8593 GB, free: 7.168 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004578/1.317, allocations: 1.377 MB / 0.8607 GB, free: 6.285 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-05/1.317, allocations: 8 kB / 0.8607 GB, free: 6.277 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.0118/1.329, allocations: 3.336 MB / 0.8639 GB, free: 3.945 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005177/1.33, allocations: 0.5577 MB / 0.8645 GB, free: 3.238 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-05/1.33, allocations: 15.98 kB / 0.8645 GB, free: 3.223 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/1.332, allocations: 277.1 kB / 0.8648 GB, free: 2.996 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004651/1.336, allocations: 0.5287 MB / 0.8653 GB, free: 2.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002532/1.339, allocations: 2.507 MB / 0.8677 GB, free: 92 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003982/1.343, allocations: 262.8 kB / 0.868 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006075/1.344, allocations: 103.6 kB / 0.8681 GB, free: 15.79 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/1.344, allocations: 4 kB / 0.8681 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01155/1.355, allocations: 3.078 MB / 0.8711 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-05/1.355, allocations: 24.31 kB / 0.8711 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/1.357, allocations: 281.7 kB / 0.8714 GB, free: 13.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004466/1.361, allocations: 0.5195 MB / 0.8719 GB, free: 12.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/1.364, allocations: 2.51 MB / 0.8743 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003818/1.368, allocations: 258.1 kB / 0.8746 GB, free: 10.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006026/1.368, allocations: 102.2 kB / 0.8747 GB, free: 10.25 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 (258): * Single equations (assignments): 251 * 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: 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.002234/1.371, allocations: 0.7229 MB / 0.8754 GB, free: 9.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007027/1.371, allocations: 205.5 kB / 0.8756 GB, free: 9.547 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01849/1.39, allocations: 7.738 MB / 0.8831 GB, free: 4.305 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01476/1.405, allocations: 6.638 MB / 0.8896 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/1.405, allocations: 0 / 0.8896 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002289/1.407, allocations: 0.7345 MB / 0.8903 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008706/1.408, allocations: 50.11 kB / 0.8904 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003403/1.411, allocations: 243.2 kB / 0.8906 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006527/1.412, allocations: 155.9 kB / 0.8908 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01451/1.427, allocations: 4.829 MB / 0.8955 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01754/1.444, allocations: 6.879 MB / 0.9022 GB, free: 6.613 MB / 474.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005012/1.449, allocations: 2.227 MB / 0.9044 GB, free: 5.332 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002884/1.452, allocations: 1.146 MB / 0.9055 GB, free: 4.465 MB / 474.7 MB Notification: Performance of Backend: time 1.192e-06/1.452, allocations: 0 / 0.9055 GB, free: 4.465 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02852/1.481, allocations: 6.012 MB / 0.9114 GB, free: 15.08 MB / 490.7 MB Notification: Performance of SimCode: time 0.0186/1.499, allocations: 7.2 MB / 0.9184 GB, free: 7.922 MB / 490.7 MB Notification: Performance of Templates: time 0.5703/2.07, allocations: 94.04 MB / 1.01 GB, free: 167 MB / 0.4948 GB