Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.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.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003922/0.003928, allocations: 347.4 kB / 15.94 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.456/3.456, 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.003703/0.003702, allocations: 218.1 kB / 397.9 MB, free: 4.98 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.4514/0.4514, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004711/0.0004713, allocations: 11.98 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08134, allocations: 48.71 MB / 0.6067 GB, free: 4.648 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.196/8.277, allocations: 2.542 GB / 3.149 GB, free: 86.05 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/8.277, allocations: 83.09 kB / 3.149 GB, free: 86.05 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.77/12.05, allocations: 0.6793 GB / 3.828 GB, free: 31.42 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.355e-06/12.05, allocations: 0 / 3.828 GB, free: 31.42 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001689/12.05, allocations: 35.92 kB / 3.828 GB, free: 31.42 MB / 458.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.01435/12.06, allocations: 2.825 MB / 3.831 GB, free: 30.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/12.06, allocations: 11.53 kB / 3.831 GB, free: 30.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005035/12.07, allocations: 458.4 kB / 3.831 GB, free: 30.15 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04497/12.11, allocations: 15.29 MB / 3.846 GB, free: 29.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/12.11, allocations: 149.5 kB / 3.846 GB, free: 29.69 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003659/12.11, allocations: 90.73 kB / 3.846 GB, free: 29.69 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006872/12.12, allocations: 1.893 MB / 3.848 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.667e-05/12.12, allocations: 4.844 kB / 3.848 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/12.12, allocations: 51.16 kB / 3.848 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/12.12, allocations: 79 kB / 3.848 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007259/12.13, allocations: 1.778 MB / 3.85 GB, free: 29.33 MB / 458.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.01896/12.15, allocations: 8.534 MB / 3.858 GB, free: 24.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005315/12.15, allocations: 1.409 MB / 3.86 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/12.15, allocations: 0.5192 MB / 3.86 GB, free: 24.08 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2232/12.38, allocations: 63.19 MB / 3.922 GB, free: 16.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003673/12.38, allocations: 0.8929 MB / 3.923 GB, free: 16.17 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 4.188e-06/12.38, allocations: 7.938 kB / 3.923 GB, free: 16.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.02592/12.41, allocations: 4.639 MB / 3.927 GB, free: 14.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004204/12.41, allocations: 404.4 kB / 3.928 GB, free: 14.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/12.41, allocations: 1.045 MB / 3.929 GB, free: 14.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005104/12.41, allocations: 40.83 kB / 3.929 GB, free: 14.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006743/12.41, allocations: 0.5696 MB / 3.929 GB, free: 14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004798/12.41, allocations: 302.6 kB / 3.93 GB, free: 13.81 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/12.41, allocations: 27.44 kB / 3.93 GB, free: 13.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/12.41, allocations: 358 kB / 3.93 GB, free: 13.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/12.42, allocations: 0.5354 MB / 3.931 GB, free: 13.49 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002346/12.42, allocations: 1.012 MB / 3.932 GB, free: 12.92 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/12.42, allocations: 0.692 MB / 3.932 GB, free: 12.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/12.42, allocations: 5.844 kB / 3.932 GB, free: 12.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.00582/12.43, allocations: 1.935 MB / 3.934 GB, free: 12.75 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000346/12.43, allocations: 0.4927 MB / 3.935 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/12.43, allocations: 11.34 kB / 3.935 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009775/12.44, allocations: 1.112 MB / 3.936 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/12.44, allocations: 249.2 kB / 3.936 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003612/12.44, allocations: 1.508 MB / 3.937 GB, free: 11.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002455/12.44, allocations: 133.7 kB / 3.938 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002137/12.44, allocations: 70.39 kB / 3.938 GB, free: 11.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/12.44, allocations: 3.875 kB / 3.938 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00575/12.45, allocations: 1.683 MB / 3.939 GB, free: 11.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.385e-05/12.45, allocations: 13.62 kB / 3.939 GB, free: 11.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002549/12.45, allocations: 381.9 kB / 3.94 GB, free: 11.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00211/12.45, allocations: 283.2 kB / 3.94 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/12.46, allocations: 1.048 MB / 3.941 GB, free: 10.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/12.46, allocations: 139.8 kB / 3.941 GB, free: 10.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/12.46, allocations: 60.88 kB / 3.941 GB, free: 10.92 MB / 490.7 MB 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: 62 * 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.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,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 (123): * Single equations (assignments): 122 * 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.001251/12.46, allocations: 469.6 kB / 3.942 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003954/12.46, allocations: 124.2 kB / 3.942 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007978/12.47, allocations: 4.07 MB / 3.946 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.513e-05/12.47, allocations: 41.5 kB / 3.946 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/12.47, allocations: 7.172 kB / 3.946 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.682e-05/12.47, allocations: 6.422 kB / 3.946 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/12.48, allocations: 5.535 MB / 3.951 GB, free: 9.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/12.48, allocations: 3.875 kB / 3.951 GB, free: 9.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/12.48, allocations: 176.4 kB / 3.951 GB, free: 9.566 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01042/12.49, allocations: 1.535 MB / 3.953 GB, free: 9.48 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003011/12.49, allocations: 25.56 kB / 3.953 GB, free: 9.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002627/12.5, allocations: 2.088 MB / 3.955 GB, free: 8.418 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/12.5, allocations: 5.031 kB / 3.955 GB, free: 8.418 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008079/12.5, allocations: 3.889 MB / 3.959 GB, free: 7.965 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/12.5, allocations: 0.5301 MB / 3.959 GB, free: 7.719 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004114/12.51, allocations: 23.36 kB / 3.959 GB, free: 7.715 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/12.51, allocations: 103.1 kB / 3.959 GB, free: 7.703 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/12.51, allocations: 73.88 kB / 3.959 GB, free: 7.695 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/12.51, allocations: 40.09 kB / 3.959 GB, free: 7.695 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002197/12.51, allocations: 1.05 MB / 3.96 GB, free: 7.586 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.21e-07/12.51, allocations: 1.594 kB / 3.96 GB, free: 7.586 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009968/12.52, allocations: 1.994 MB / 3.962 GB, free: 7.293 MB / 490.7 MB 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,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.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.01371/12.53, allocations: 2.28 MB / 3.965 GB, free: 5.781 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008222/12.54, allocations: 2.47 MB / 3.967 GB, free: 4.418 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/12.54, allocations: 0.9375 kB / 3.967 GB, free: 4.418 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002504/12.54, allocations: 1.041 MB / 3.968 GB, free: 3.914 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006079/12.55, allocations: 0.6611 MB / 3.969 GB, free: 3.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009325/12.56, allocations: 4.427 MB / 3.973 GB, free: 60 kB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4871/13.05, allocations: 1.482 MB / 3.974 GB, free: 58.29 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005671/13.05, allocations: 0.9763 MB / 3.975 GB, free: 58.27 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008219/13.05, allocations: 108.5 kB / 3.976 GB, free: 58.27 MB / 490.7 MB Notification: Performance of SimCode: time 1.643e-06/13.05, allocations: 0 / 3.976 GB, free: 58.27 MB / 490.7 MB Notification: Performance of Templates: time 0.1763/13.23, allocations: 66.34 MB / 4.04 GB, free: 56.38 MB / 490.7 MB