Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.006833/0.006832, allocations: 175 kB / 15.12 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.666/1.666, allocations: 194.5 MB / 210.3 MB, free: 7.617 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001866/0.001866, allocations: 124.6 kB / 255.6 MB, free: 10.22 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2207/0.2207, allocations: 40 MB / 340.8 MB, free: 11.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005123/0.0005123, allocations: 10.97 kB / 406.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1215, allocations: 54.87 MB / 461 MB, free: 3.301 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.778/7.899, allocations: 2.67 GB / 3.12 GB, free: 70.32 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/7.9, allocations: 86.3 kB / 3.12 GB, free: 70.28 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.39/12.29, allocations: 1.024 GB / 4.145 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.597e-06/12.29, allocations: 0 / 4.145 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003141/12.29, allocations: 68 kB / 4.145 GB, free: 13.92 MB / 0.5261 GB 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.02305/12.31, allocations: 4.691 MB / 4.149 GB, free: 9.156 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/12.31, allocations: 11.97 kB / 4.149 GB, free: 9.145 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009611/12.32, allocations: 1.031 MB / 4.15 GB, free: 8.109 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/12.33, allocations: 2.262 MB / 4.153 GB, free: 5.789 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005671/12.33, allocations: 280.2 kB / 4.153 GB, free: 5.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001727/12.34, allocations: 240 kB / 4.153 GB, free: 5.266 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/12.35, allocations: 4.483 MB / 4.157 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.092e-05/12.35, allocations: 7.938 kB / 4.157 GB, free: 0.543 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004305/12.35, allocations: 104 kB / 4.157 GB, free: 452 kB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003156/12.35, allocations: 220.8 kB / 4.158 GB, free: 228 kB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4695/12.82, allocations: 4.185 MB / 4.162 GB, free: 32.52 MB / 0.5261 GB 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.03672/12.86, allocations: 19.03 MB / 4.18 GB, free: 21.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007828/12.86, allocations: 2.773 MB / 4.183 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03056/12.89, allocations: 17 MB / 4.2 GB, free: 27.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.225e-05/12.89, allocations: 62.03 kB / 4.2 GB, free: 27.26 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002657/12.9, allocations: 357.8 kB / 4.2 GB, free: 27.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=181): time 4.438e-06/12.9, allocations: 0 / 4.2 GB, free: 27.2 MB / 0.5417 GB 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 0.6159/13.51, allocations: 69.98 MB / 4.268 GB, free: 22.54 MB / 0.5417 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 inlineWhenForInitialization (initialization): time 0.04199/13.56, allocations: 10.11 MB / 4.278 GB, free: 21.42 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003178/13.56, allocations: 1.702 MB / 4.28 GB, free: 21.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007784/13.56, allocations: 75.45 kB / 4.28 GB, free: 21.17 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000947/13.56, allocations: 1.169 MB / 4.281 GB, free: 20.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001363/13.56, allocations: 0.9412 MB / 4.282 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/13.56, allocations: 61.28 kB / 4.282 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002576/13.56, allocations: 428.5 kB / 4.283 GB, free: 19.94 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005275/13.57, allocations: 2.763 MB / 4.285 GB, free: 19.91 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005996/13.57, allocations: 3.337 MB / 4.289 GB, free: 19.31 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007262/13.58, allocations: 3.193 MB / 4.292 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.144e-05/13.58, allocations: 5.031 kB / 4.292 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.02042/13.6, allocations: 9.302 MB / 4.301 GB, free: 18.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002618/13.6, allocations: 6.078 MB / 4.307 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-05/13.6, allocations: 14.75 kB / 4.307 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05941/13.66, allocations: 15.93 MB / 4.322 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/13.67, allocations: 370.4 kB / 4.323 GB, free: 6.727 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02128/13.69, allocations: 10.83 MB / 4.333 GB, free: 0.7109 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00528/13.69, allocations: 395.9 kB / 4.334 GB, free: 476 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006913/13.69, allocations: 176.3 kB / 4.334 GB, free: 352 kB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/13.69, allocations: 4 kB / 4.334 GB, free: 348 kB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02519/13.72, allocations: 9.149 MB / 4.343 GB, free: 13.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.254e-05/13.72, allocations: 19.95 kB / 4.343 GB, free: 13.01 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03019/13.75, allocations: 8.838 MB / 4.351 GB, free: 7.688 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/13.75, allocations: 434.8 kB / 4.352 GB, free: 7.375 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01868/13.77, allocations: 9.771 MB / 4.361 GB, free: 1.867 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004882/13.77, allocations: 385.6 kB / 4.362 GB, free: 1.625 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005958/13.78, allocations: 171.1 kB / 4.362 GB, free: 1.508 MB / 0.5573 GB 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.002579/13.78, allocations: 0.872 MB / 4.363 GB, free: 1.027 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009525/13.78, allocations: 256.9 kB / 4.363 GB, free: 0.7734 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4379/14.22, allocations: 17.63 MB / 4.38 GB, free: 61.14 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001402/14.22, allocations: 123.4 kB / 4.38 GB, free: 61.14 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/14.22, allocations: 6.828 kB / 4.38 GB, free: 61.14 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02276/14.24, allocations: 15.77 MB / 4.396 GB, free: 60.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/14.28, allocations: 27.22 MB / 4.422 GB, free: 58.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.85e-05/14.28, allocations: 2.688 kB / 4.422 GB, free: 58.86 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/14.29, allocations: 223.4 kB / 4.422 GB, free: 58.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07636/14.36, allocations: 27.51 MB / 4.449 GB, free: 58.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001139/14.36, allocations: 102 kB / 4.449 GB, free: 58.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02617/14.39, allocations: 16.03 MB / 4.465 GB, free: 57.21 MB / 0.5573 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.04363/14.43, allocations: 14.45 MB / 4.479 GB, free: 56.2 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03074/14.46, allocations: 22.75 MB / 4.501 GB, free: 47.18 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003599/14.47, allocations: 1.134 MB / 4.502 GB, free: 46.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006229/14.47, allocations: 50.94 kB / 4.503 GB, free: 46.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00336/14.47, allocations: 432 kB / 4.503 GB, free: 46.52 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005184/14.47, allocations: 263.9 kB / 4.503 GB, free: 46.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003007/14.47, allocations: 134.6 kB / 4.503 GB, free: 46.46 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001916/14.47, allocations: 1.322 MB / 4.505 GB, free: 45.96 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.81e-07/14.47, allocations: 0 / 4.505 GB, free: 45.96 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.016/14.49, allocations: 4.516 MB / 4.509 GB, free: 43.61 MB / 0.5573 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.0221/14.51, allocations: 4.355 MB / 4.513 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02802/14.54, allocations: 12.45 MB / 4.525 GB, free: 30.62 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/14.54, allocations: 0 / 4.525 GB, free: 30.62 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01205/14.55, allocations: 5.794 MB / 4.531 GB, free: 25.62 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006007/14.56, allocations: 1.028 MB / 4.532 GB, free: 24.89 MB / 0.5573 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]