Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") 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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 241.6 MB, free: 11.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009622/0.0009622, allocations: 107.3 kB / 291.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3019/0.3019, allocations: 44.14 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000975/0.0009751, allocations: 51.92 kB / 457.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3022, allocations: 60.8 MB / 0.5064 GB, free: 38.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.04784/0.35, allocations: 66.18 MB / 0.571 GB, free: 7.195 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03825/0.3883, allocations: 32.75 MB / 0.603 GB, free: 12.97 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.3902, allocations: 55.56 kB / 0.603 GB, free: 12.92 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00161/0.3919, allocations: 0.5712 MB / 0.6036 GB, free: 12.34 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01708/0.409, allocations: 5.57 MB / 0.609 GB, free: 6.773 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01056/0.4196, allocations: 3.929 MB / 0.6129 GB, free: 2.852 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.005224/0.4248, allocations: 4.836 MB / 0.6176 GB, free: 14 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.4259, allocations: 0.7431 MB / 0.6183 GB, free: 13.25 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06052/0.4865, allocations: 28.93 MB / 0.6466 GB, free: 8 kB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03274/0.5193, allocations: 15.31 MB / 0.6615 GB, free: 500 kB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000354/0.5197, allocations: 68 kB / 0.6616 GB, free: 432 kB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01606/0.5357, allocations: 9.021 MB / 0.6704 GB, free: 7.391 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007123/0.5365, allocations: 402.6 kB / 0.6708 GB, free: 6.996 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.5375, allocations: 0.7154 MB / 0.6715 GB, free: 6.277 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2471/0.7847, allocations: 7.141 MB / 0.6785 GB, free: 63.23 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.7847, allocations: 0 / 0.6785 GB, free: 63.23 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7847, allocations: 0.5 kB / 0.6785 GB, free: 63.23 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.67e-05/0.7848, allocations: 1.844 kB / 0.6785 GB, free: 63.23 MB / 490.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.006603/0.7914, allocations: 2.632 MB / 0.681 GB, free: 62.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.7914, allocations: 15.62 kB / 0.6811 GB, free: 62.29 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002854/0.7943, allocations: 465.4 kB / 0.6815 GB, free: 62.21 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.7957, allocations: 0.9775 MB / 0.6825 GB, free: 61.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.7958, allocations: 143 kB / 0.6826 GB, free: 61.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.796, allocations: 98.47 kB / 0.6827 GB, free: 61.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003532/0.7995, allocations: 1.865 MB / 0.6845 GB, free: 61.53 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.7996, allocations: 5 kB / 0.6845 GB, free: 61.53 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.7997, allocations: 47.58 kB / 0.6846 GB, free: 61.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.7999, allocations: 84.38 kB / 0.6846 GB, free: 61.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003679/0.8035, allocations: 1.758 MB / 0.6864 GB, free: 61.52 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.01046/0.814, allocations: 8.506 MB / 0.6947 GB, free: 56.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003207/0.8173, allocations: 1.367 MB / 0.696 GB, free: 56.33 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008115/0.8181, allocations: 0.5078 MB / 0.6965 GB, free: 56.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1164/0.9345, allocations: 63.6 MB / 0.7586 GB, free: 5.645 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002215/0.9368, allocations: 0.8716 MB / 0.7595 GB, free: 4.957 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 2.424e-06/0.9368, allocations: 0 / 0.7595 GB, free: 4.957 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.009903/0.9467, allocations: 4.499 MB / 0.7638 GB, free: 1.348 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.527e-05/0.9468, allocations: 405.6 kB / 0.7642 GB, free: 0.8633 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.9479, allocations: 1.055 MB / 0.7653 GB, free: 72 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.948, allocations: 44.33 kB / 0.7653 GB, free: 36 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003972/0.9484, allocations: 0.5725 MB / 0.7659 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.9486, allocations: 301.3 kB / 0.7662 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003937/0.949, allocations: 278.3 kB / 0.7664 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.9492, allocations: 354.9 kB / 0.7668 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.9502, allocations: 0.5576 MB / 0.7673 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.9516, allocations: 1.03 MB / 0.7683 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0023/0.9539, allocations: 1.58 MB / 0.7699 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.9539, allocations: 4 kB / 0.7699 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003609/0.9575, allocations: 1.967 MB / 0.7718 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.9576, allocations: 16.84 kB / 0.7718 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.9576, allocations: 12 kB / 0.7718 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005939/0.9635, allocations: 1.153 MB / 0.7729 GB, free: 10 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009644/0.9645, allocations: 247.6 kB / 0.7732 GB, free: 9.789 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/0.9669, allocations: 1.48 MB / 0.7746 GB, free: 8.676 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.9683, allocations: 116.2 kB / 0.7747 GB, free: 8.582 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.9685, allocations: 69.73 kB / 0.7748 GB, free: 8.527 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001568/0.97, allocations: 0.7927 MB / 0.7756 GB, free: 8.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001272/0.9713, allocations: 0.9932 MB / 0.7765 GB, free: 7.031 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002179/0.9735, allocations: 1.498 MB / 0.778 GB, free: 5.84 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.905e-06/0.9735, allocations: 14.66 kB / 0.778 GB, free: 5.832 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003598/0.9771, allocations: 1.799 MB / 0.7798 GB, free: 4.625 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.9772, allocations: 13.67 kB / 0.7798 GB, free: 4.613 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.092e-05/0.9772, allocations: 19.94 kB / 0.7798 GB, free: 4.594 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/0.9787, allocations: 375.1 kB / 0.7802 GB, free: 4.297 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009472/0.9796, allocations: 285.4 kB / 0.7804 GB, free: 4.051 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.9809, allocations: 1.052 MB / 0.7815 GB, free: 3.191 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.9822, allocations: 124.6 kB / 0.7816 GB, free: 3.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.9823, allocations: 68.8 kB / 0.7816 GB, free: 3.035 MB / 0.4948 GB 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: 64 * 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.heatTransfer.states[1].phase,pipe.volume.inFlow[2],pipe.volume.inFlow[1],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 (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0003962/0.9827, allocations: 281.1 kB / 0.7819 GB, free: 2.812 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.983, allocations: 126.2 kB / 0.782 GB, free: 2.691 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005041/0.9881, allocations: 3.996 MB / 0.7859 GB, free: 92 kB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.225e-05/0.9881, allocations: 45.59 kB / 0.786 GB, free: 60 kB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.9881, allocations: 7.938 kB / 0.786 GB, free: 52 kB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.9881, allocations: 3.984 kB / 0.786 GB, free: 48 kB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00658/0.9947, allocations: 5.517 MB / 0.7914 GB, free: 12.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.9948, allocations: 8.062 kB / 0.7914 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006533/0.9954, allocations: 158.7 kB / 0.7915 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006146/1.002, allocations: 1.523 MB / 0.793 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.13e-05/1.002, allocations: 29.7 kB / 0.793 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001598/1.003, allocations: 2.087 MB / 0.7951 GB, free: 9.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.003, allocations: 3.938 kB / 0.7951 GB, free: 9.266 MB / 0.5105 GB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4522/1.455, allocations: 102.8 MB / 0.8955 GB, free: 0.9922 MB / 0.6042 GB Error: post-optimization module symbolicJacobian (simulation) failed.