Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008719/0.008724, allocations: 169.6 kB / 15.11 MB, free: 5.977 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.493/1.493, allocations: 170.8 MB / 186.6 MB, free: 1.031 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00156/0.00156, allocations: 109.8 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.383/0.383, allocations: 38.06 MB / 303.7 MB, free: 42.64 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004253/0.0004254, allocations: 12 kB / 362.9 MB, free: 5.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.144, allocations: 48.69 MB / 411.6 MB, free: 4.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.703/7.847, allocations: 2.56 GB / 2.962 GB, free: 40.35 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003978/7.847, allocations: 89.45 kB / 2.962 GB, free: 40.26 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.461/12.31, allocations: 0.9984 GB / 3.96 GB, free: 24.14 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.054e-06/12.31, allocations: 0 / 3.96 GB, free: 24.14 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003414/12.31, allocations: 74.17 kB / 3.96 GB, free: 24.13 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.0219/12.33, allocations: 4.572 MB / 3.965 GB, free: 21.95 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/12.33, allocations: 9.094 kB / 3.965 GB, free: 21.95 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00886/12.34, allocations: 0.9839 MB / 3.966 GB, free: 21.79 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008156/12.35, allocations: 2.252 MB / 3.968 GB, free: 21.24 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004645/12.35, allocations: 286.2 kB / 3.968 GB, free: 21.17 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/12.35, allocations: 234.1 kB / 3.968 GB, free: 21.17 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0124/12.36, allocations: 4.493 MB / 3.973 GB, free: 20.54 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.77e-05/12.36, allocations: 7.656 kB / 3.973 GB, free: 20.54 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004553/12.36, allocations: 104.7 kB / 3.973 GB, free: 20.54 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003116/12.36, allocations: 225.5 kB / 3.973 GB, free: 20.53 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/12.37, allocations: 4.18 MB / 3.977 GB, free: 20.46 MB / 474.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.0335/12.41, allocations: 19.05 MB / 3.996 GB, free: 9.371 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006495/12.41, allocations: 2.767 MB / 3.998 GB, free: 9.328 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03457/12.45, allocations: 17 MB / 4.015 GB, free: 14.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.635e-05/12.45, allocations: 62.19 kB / 4.015 GB, free: 14.26 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002717/12.45, allocations: 357.7 kB / 4.015 GB, free: 14.14 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 6.302e-06/12.45, allocations: 0 / 4.015 GB, free: 14.14 MB / 490.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: tank.medium.h 2: radiator.mediums[1].h 3: pipe.mediums[2].h 4: pipe.mediums[2].p 5: pipe.mediums[1].p 6: pipe.mediums[1].h 7: heater.mediums[1].h 8: radiator.mediums[1].p 9: pump.medium.h 10: pump.medium.p 11: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=283): time 1.033/13.49, allocations: 69.97 MB / 4.084 GB, free: 35.96 MB / 490.7 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of inlineWhenForInitialization (initialization): time 0.04123/13.53, allocations: 10.1 MB / 4.094 GB, free: 35.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003027/13.53, allocations: 1.697 MB / 4.095 GB, free: 34.94 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006909/13.53, allocations: 75.86 kB / 4.095 GB, free: 34.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008733/13.53, allocations: 1.172 MB / 4.096 GB, free: 34.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001101/13.53, allocations: 0.9373 MB / 4.097 GB, free: 34.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/13.53, allocations: 61.53 kB / 4.097 GB, free: 34.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/13.53, allocations: 420.7 kB / 4.098 GB, free: 33.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004823/13.54, allocations: 2.771 MB / 4.101 GB, free: 33.74 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005267/13.54, allocations: 3.331 MB / 4.104 GB, free: 33.17 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00724/13.55, allocations: 3.197 MB / 4.107 GB, free: 33.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-05/13.55, allocations: 3.5 kB / 4.107 GB, free: 33.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.01862/13.57, allocations: 9.308 MB / 4.116 GB, free: 32.85 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002232/13.57, allocations: 6.073 MB / 4.122 GB, free: 26.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.725e-05/13.57, allocations: 20.02 kB / 4.122 GB, free: 26.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06135/13.63, allocations: 15.92 MB / 4.137 GB, free: 26.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/13.63, allocations: 372.2 kB / 4.138 GB, free: 26.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02055/13.66, allocations: 10.83 MB / 4.148 GB, free: 24.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005583/13.66, allocations: 387.2 kB / 4.149 GB, free: 24.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009097/13.66, allocations: 177.3 kB / 4.149 GB, free: 24.78 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/13.66, allocations: 3.688 kB / 4.149 GB, free: 24.78 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01764/13.68, allocations: 8.604 MB / 4.157 GB, free: 24.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.457e-05/13.68, allocations: 15.03 kB / 4.157 GB, free: 24.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02849/13.71, allocations: 8.836 MB / 4.166 GB, free: 24.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002224/13.71, allocations: 435 kB / 4.166 GB, free: 23.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01776/13.73, allocations: 9.777 MB / 4.176 GB, free: 18.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004797/13.73, allocations: 390.5 kB / 4.176 GB, free: 18.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007601/13.73, allocations: 168.9 kB / 4.177 GB, free: 18.03 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 174 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {16 79,18 85} Notification: Performance of prepare postOptimizeDAE: time 0.002646/13.74, allocations: 0.8734 MB / 4.177 GB, free: 17.55 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008826/13.74, allocations: 253.7 kB / 4.178 GB, free: 17.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02529/13.76, allocations: 17.59 MB / 4.195 GB, free: 3.957 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/13.76, allocations: 112.6 kB / 4.195 GB, free: 3.887 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/13.76, allocations: 1.312 kB / 4.195 GB, free: 3.887 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02633/13.79, allocations: 15.89 MB / 4.21 GB, free: 6.172 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4807/14.27, allocations: 27.25 MB / 4.237 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.433e-05/14.27, allocations: 1.422 kB / 4.237 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/14.27, allocations: 226.2 kB / 4.237 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08245/14.35, allocations: 27.52 MB / 4.264 GB, free: 65.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001191/14.35, allocations: 105.3 kB / 4.264 GB, free: 65.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02541/14.38, allocations: 16.02 MB / 4.28 GB, free: 64.15 MB / 0.5105 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04928/14.43, allocations: 14.46 MB / 4.294 GB, free: 63.15 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03868/14.47, allocations: 22.74 MB / 4.316 GB, free: 62.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004484/14.47, allocations: 1.134 MB / 4.317 GB, free: 62.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001249/14.47, allocations: 64.34 kB / 4.317 GB, free: 62.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00484/14.48, allocations: 431.5 kB / 4.318 GB, free: 62.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008487/14.48, allocations: 258.1 kB / 4.318 GB, free: 62.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004718/14.48, allocations: 130.2 kB / 4.318 GB, free: 62.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003087/14.48, allocations: 1.326 MB / 4.319 GB, free: 62.06 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.815e-06/14.48, allocations: 0 / 4.319 GB, free: 62.06 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02329/14.51, allocations: 4.482 MB / 4.324 GB, free: 62.06 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 60 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.region3boundary,$cse13.region3boundary,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse48.phase,$cse48.region,$cse49.phase,$cse49.region,$cse50.phase,$cse50.region,$cse51.region3boundary,$cse52.region3boundary,$cse53.phase,$cse53.region,$cse54.region3boundary,$cse55.region3boundary,$cse56.phase,$cse56.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * 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 {15 83,20 123} Notification: Performance of Backend phase and start with SimCode phase: time 0.02458/14.53, allocations: 4.325 MB / 4.328 GB, free: 61.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03099/14.56, allocations: 12.45 MB / 4.34 GB, free: 60.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/14.56, allocations: 2.438 kB / 4.34 GB, free: 60.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01258/14.58, allocations: 5.795 MB / 4.346 GB, free: 56.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006491/14.58, allocations: 1.025 MB / 4.347 GB, free: 55.84 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]