Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeInitialValues.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.TestOverdeterminedInitial.DynamicPipeInitialValues,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeInitialValues") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002836/0.002835, allocations: 348.6 kB / 15.95 MB, free: 6.199 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.425/3.425, allocations: 341.5 MB / 358.2 MB, free: 12.66 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.003641/0.003641, allocations: 225.1 kB / 397.9 MB, free: 4.984 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.519/0.519, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004806/0.0004808, allocations: 16 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.08755, allocations: 48.71 MB / 0.6067 GB, free: 4.672 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeInitialValues): time 0.3716/0.4592, allocations: 44.36 MB / 0.6501 GB, free: 64.32 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03974/0.499, allocations: 24.1 MB / 0.6736 GB, free: 44.62 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001664/0.5007, allocations: 43.62 kB / 0.6736 GB, free: 44.58 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002004/0.5027, allocations: 453.5 kB / 0.6741 GB, free: 44.13 MB / 362.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.0199/0.5227, allocations: 4.65 MB / 0.6786 GB, free: 39.49 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0165/0.5392, allocations: 4.109 MB / 0.6826 GB, free: 35.41 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00577/0.545, allocations: 4.608 MB / 0.6871 GB, free: 30.79 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.5468, allocations: 0.8 MB / 0.6879 GB, free: 30 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1371/0.684, allocations: 51.55 MB / 0.7383 GB, free: 10.43 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05096/0.735, allocations: 20.54 MB / 0.7583 GB, free: 5.871 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006032/0.7357, allocations: 80 kB / 0.7584 GB, free: 5.793 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3158/1.052, allocations: 7.821 MB / 0.766 GB, free: 82.82 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001438/1.053, allocations: 0.6516 MB / 0.7667 GB, free: 82.82 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001293/1.054, allocations: 429.2 kB / 0.7671 GB, free: 82.79 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/1.068, allocations: 5.11 MB / 0.7721 GB, free: 82.67 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/1.068, allocations: 0 / 0.7721 GB, free: 82.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.068, allocations: 3.188 kB / 0.7721 GB, free: 82.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001103/1.068, allocations: 0.8125 kB / 0.7721 GB, free: 82.67 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: 474 * Number of variables: 474 Notification: Performance of Generate backend data structure: time 0.01463/1.082, allocations: 2.834 MB / 0.7748 GB, free: 81.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/1.083, allocations: 11.92 kB / 0.7748 GB, free: 81.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006924/1.089, allocations: 0.6407 MB / 0.7755 GB, free: 81.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003766/1.093, allocations: 1.13 MB / 0.7766 GB, free: 81.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/1.094, allocations: 157 kB / 0.7767 GB, free: 81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008177/1.095, allocations: 157.7 kB / 0.7769 GB, free: 81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/1.107, allocations: 3.349 MB / 0.7801 GB, free: 80.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.439e-05/1.107, allocations: 6.906 kB / 0.7802 GB, free: 80.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003982/1.107, allocations: 68.14 kB / 0.7802 GB, free: 80.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003262/1.107, allocations: 200.2 kB / 0.7804 GB, free: 80.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0137/1.121, allocations: 3.301 MB / 0.7836 GB, free: 80.6 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.02815/1.149, allocations: 13.36 MB / 0.7967 GB, free: 72.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008547/1.158, allocations: 2.198 MB / 0.7988 GB, free: 71.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00339/1.161, allocations: 1.108 MB / 0.7999 GB, free: 71.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2314/1.393, allocations: 62.49 MB / 0.8609 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008966/1.402, allocations: 1.64 MB / 0.8625 GB, free: 2.684 MB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 7.434e-06/1.402, allocations: 0 / 0.8625 GB, free: 2.684 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.06406/1.466, allocations: 10.59 MB / 0.8729 GB, free: 10.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002108/1.466, allocations: 333 kB / 0.8732 GB, free: 9.734 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002805/1.469, allocations: 1.229 MB / 0.8744 GB, free: 8.805 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005281/1.47, allocations: 61.08 kB / 0.8744 GB, free: 8.766 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/1.471, allocations: 0.8032 MB / 0.8752 GB, free: 8.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001119/1.472, allocations: 0.5645 MB / 0.8758 GB, free: 7.695 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/1.472, allocations: 43.69 kB / 0.8758 GB, free: 7.688 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002571/1.472, allocations: 386.6 kB / 0.8762 GB, free: 7.336 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004464/1.477, allocations: 1.186 MB / 0.8773 GB, free: 6.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005102/1.482, allocations: 1.775 MB / 0.8791 GB, free: 4.914 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 11.5/12.98, allocations: 0.9767 GB / 1.856 GB, free: 112.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.178e-05/12.98, allocations: 8 kB / 1.856 GB, free: 112.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01193/12.99, allocations: 3.487 MB / 1.859 GB, free: 110.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003563/12.99, allocations: 0.609 MB / 1.86 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/12.99, allocations: 19.98 kB / 1.86 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/13, allocations: 462.9 kB / 1.86 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004301/13, allocations: 0.5226 MB / 1.861 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/13, allocations: 3.315 MB / 1.864 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003989/13.01, allocations: 255.4 kB / 1.864 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005521/13.01, allocations: 104 kB / 1.864 GB, free: 104.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/13.01, allocations: 4 kB / 1.864 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01076/13.02, allocations: 3.221 MB / 1.868 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-05/13.02, allocations: 20 kB / 1.868 GB, free: 101.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002349/13.02, allocations: 460 kB / 1.868 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005111/13.03, allocations: 0.5226 MB / 1.868 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/13.03, allocations: 3.317 MB / 1.872 GB, free: 96.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003565/13.03, allocations: 242.1 kB / 1.872 GB, free: 96.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000529/13.03, allocations: 99.97 kB / 1.872 GB, free: 96.6 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: pipe.mediums[1].p = 10000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 16 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,pipe.state_a.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 8,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001892/13.04, allocations: 0.6931 MB / 1.873 GB, free: 95.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/13.04, allocations: 151.5 kB / 1.873 GB, free: 95.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01465/13.05, allocations: 6.641 MB / 1.879 GB, free: 89.37 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01096/13.06, allocations: 5.217 MB / 1.884 GB, free: 84.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-05/13.06, allocations: 0 / 1.884 GB, free: 84.04 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002176/13.06, allocations: 0.7541 MB / 1.885 GB, free: 83.26 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009112/13.06, allocations: 47.98 kB / 1.885 GB, free: 83.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003377/13.07, allocations: 254.3 kB / 1.885 GB, free: 82.96 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007048/13.07, allocations: 169.7 kB / 1.886 GB, free: 82.8 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01276/13.08, allocations: 5.064 MB / 1.891 GB, free: 77.73 MB / 474.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0152/13.1, allocations: 6.831 MB / 1.897 GB, free: 70.86 MB / 474.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.007803/13.1, allocations: 2.109 MB / 1.899 GB, free: 68.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003872/13.11, allocations: 1.184 MB / 1.9 GB, free: 67.57 MB / 474.7 MB Notification: Performance of Backend: time 1.522e-06/13.11, allocations: 0 / 1.9 GB, free: 67.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02639/13.13, allocations: 5.21 MB / 1.906 GB, free: 62.75 MB / 474.7 MB Notification: Performance of SimCode: time 0.01338/13.15, allocations: 6.379 MB / 1.912 GB, free: 56.41 MB / 474.7 MB Notification: Performance of Templates: time 0.458/13.61, allocations: 83.87 MB / 1.994 GB, free: 146.6 MB / 474.7 MB