Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.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_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003929/0.003929, allocations: 352.3 kB / 15.95 MB, free: 6.215 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.682/3.682, allocations: 341.5 MB / 358.2 MB, free: 12.65 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.003484/0.003484, allocations: 225.1 kB / 397.9 MB, free: 4.988 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.4955/0.4955, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004841/0.0004844, allocations: 8 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08396, allocations: 48.7 MB / 0.6067 GB, free: 4.66 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.3931/0.4771, allocations: 86.06 MB / 0.6908 GB, free: 26.96 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05919/0.5363, allocations: 34.91 MB / 0.7249 GB, free: 8.012 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003348/0.5398, allocations: 95.31 kB / 0.725 GB, free: 7.918 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004564/0.5444, allocations: 0.9556 MB / 0.7259 GB, free: 6.957 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.02798/0.5724, allocations: 6.583 MB / 0.7323 GB, free: 384 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0283/0.6007, allocations: 7.04 MB / 0.7392 GB, free: 9.371 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01368/0.6144, allocations: 7.836 MB / 0.7469 GB, free: 1.512 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003451/0.6179, allocations: 1.206 MB / 0.748 GB, free: 324 kB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006569/0.6246, allocations: 2.129 MB / 0.7501 GB, free: 14.18 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4045/1.029, allocations: 21.89 MB / 0.7715 GB, free: 28.51 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001192/1.03, allocations: 107.6 kB / 0.7716 GB, free: 28.51 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02951/1.06, allocations: 9.45 MB / 0.7808 GB, free: 28.49 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002218/1.062, allocations: 0.8115 MB / 0.7816 GB, free: 28.49 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/1.064, allocations: 0.5122 MB / 0.7821 GB, free: 28.46 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01616/1.08, allocations: 6.465 MB / 0.7884 GB, free: 28.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/1.08, allocations: 2.812 kB / 0.7884 GB, free: 28.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.08, allocations: 3.094 kB / 0.7884 GB, free: 28.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001355/1.08, allocations: 0 / 0.7884 GB, free: 28.25 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.01424/1.094, allocations: 3.521 MB / 0.7919 GB, free: 26.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/1.094, allocations: 9.406 kB / 0.7919 GB, free: 26.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008462/1.103, allocations: 0.8177 MB / 0.7927 GB, free: 26.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0223/1.125, allocations: 6.41 MB / 0.7989 GB, free: 25.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003565/1.126, allocations: 177 kB / 0.7991 GB, free: 25.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007874/1.126, allocations: 195.6 kB / 0.7993 GB, free: 25.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01621/1.143, allocations: 3.5 MB / 0.8027 GB, free: 25.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/1.143, allocations: 9.781 kB / 0.8027 GB, free: 25.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00051/1.143, allocations: 83.05 kB / 0.8028 GB, free: 25.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005304/1.144, allocations: 189.5 kB / 0.803 GB, free: 25.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01748/1.161, allocations: 3.277 MB / 0.8062 GB, free: 24.7 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.03325/1.195, allocations: 14.95 MB / 0.8208 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00893/1.204, allocations: 2.307 MB / 0.823 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003385/1.207, allocations: 1.123 MB / 0.8241 GB, free: 9.262 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06402/1.271, allocations: 19 MB / 0.8427 GB, free: 4.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007025/1.278, allocations: 1.624 MB / 0.8443 GB, free: 3.152 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 6.843e-06/1.278, allocations: 0 / 0.8443 GB, free: 3.152 MB / 426.7 MB Notification: Performance of matching and sorting (n=169): time 0.03435/1.313, allocations: 8.066 MB / 0.8521 GB, free: 13.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/1.313, allocations: 233 kB / 0.8524 GB, free: 12.85 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/1.316, allocations: 1.559 MB / 0.8539 GB, free: 11.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005047/1.317, allocations: 58.34 kB / 0.8539 GB, free: 11.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/1.318, allocations: 0.9952 MB / 0.8549 GB, free: 11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001088/1.319, allocations: 0.5838 MB / 0.8555 GB, free: 10.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/1.319, allocations: 41.19 kB / 0.8555 GB, free: 10.49 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002507/1.32, allocations: 392.1 kB / 0.8559 GB, free: 10.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003986/1.324, allocations: 1.135 MB / 0.857 GB, free: 9.363 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004719/1.328, allocations: 1.669 MB / 0.8586 GB, free: 7.887 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004666/1.333, allocations: 1.376 MB / 0.86 GB, free: 7.004 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.467e-05/1.333, allocations: 4 kB / 0.86 GB, free: 7 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01286/1.346, allocations: 3.952 MB / 0.8638 GB, free: 4.301 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005576/1.347, allocations: 0.5573 MB / 0.8644 GB, free: 3.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.235e-05/1.347, allocations: 21.48 kB / 0.8644 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02726/1.374, allocations: 2.972 MB / 0.8673 GB, free: 0.957 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/1.376, allocations: 322.8 kB / 0.8676 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009948/1.386, allocations: 3.485 MB / 0.871 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/1.39, allocations: 251.1 kB / 0.8713 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004318/1.391, allocations: 106.6 kB / 0.8714 GB, free: 13.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/1.391, allocations: 4 kB / 0.8714 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01266/1.403, allocations: 3.621 MB / 0.8749 GB, free: 11.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.308e-05/1.404, allocations: 16 kB / 0.8749 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01304/1.417, allocations: 1.783 MB / 0.8767 GB, free: 9.863 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00278/1.419, allocations: 369 kB / 0.877 GB, free: 9.543 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007396/1.427, allocations: 2.782 MB / 0.8797 GB, free: 7.457 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003593/1.431, allocations: 254.2 kB / 0.88 GB, free: 7.242 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000379/1.431, allocations: 101.2 kB / 0.8801 GB, free: 7.16 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.001872/1.433, allocations: 0.7177 MB / 0.8808 GB, free: 6.652 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006325/1.433, allocations: 197.6 kB / 0.881 GB, free: 6.457 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01762/1.451, allocations: 7.741 MB / 0.8885 GB, free: 1.211 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01444/1.466, allocations: 6.643 MB / 0.895 GB, free: 12.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-05/1.466, allocations: 10.61 kB / 0.895 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.468, allocations: 0.7209 MB / 0.8957 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008027/1.469, allocations: 50.98 kB / 0.8958 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003199/1.472, allocations: 243.6 kB / 0.896 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004948/1.472, allocations: 149.3 kB / 0.8961 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0143/1.487, allocations: 4.836 MB / 0.9009 GB, free: 8.176 MB / 474.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01696/1.504, allocations: 6.887 MB / 0.9076 GB, free: 2.785 MB / 474.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00524/1.509, allocations: 2.22 MB / 0.9098 GB, free: 0.5625 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00291/1.512, allocations: 1.147 MB / 0.9109 GB, free: 15.39 MB / 490.7 MB Notification: Performance of Backend: time 1.583e-06/1.512, allocations: 0 / 0.9109 GB, free: 15.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02821/1.54, allocations: 6.11 MB / 0.9168 GB, free: 9.645 MB / 490.7 MB Notification: Performance of SimCode: time 0.01711/1.557, allocations: 7.186 MB / 0.9239 GB, free: 2.492 MB / 490.7 MB Notification: Performance of Templates: time 0.5095/2.067, allocations: 98.81 MB / 1.02 GB, free: 156.4 MB / 0.4948 GB