Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01003/0.01003, allocations: 165.5 kB / 15.11 MB, free: 5.984 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 1.7/1.7, allocations: 170.8 MB / 186.6 MB, free: 1.113 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001986/0.001986, allocations: 114.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4421/0.4421, allocations: 38.05 MB / 303.7 MB, free: 42.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004668/0.0004669, allocations: 8 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1052, allocations: 48.7 MB / 411.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.939/8.044, allocations: 2.56 GB / 2.962 GB, free: 47.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/8.045, allocations: 81.59 kB / 2.962 GB, free: 47.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.556/13.6, allocations: 0.9985 GB / 3.96 GB, free: 22.88 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.865e-06/13.6, allocations: 0 / 3.96 GB, free: 22.88 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003629/13.6, allocations: 74.75 kB / 3.96 GB, free: 22.86 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.02277/13.62, allocations: 4.57 MB / 3.965 GB, free: 20.69 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/13.62, allocations: 11.16 kB / 3.965 GB, free: 20.69 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002427/13.63, allocations: 423.7 kB / 3.965 GB, free: 20.63 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01217/13.64, allocations: 0.9805 MB / 3.966 GB, free: 20.47 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009992/13.65, allocations: 2.265 MB / 3.968 GB, free: 19.98 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005316/13.65, allocations: 283.1 kB / 3.969 GB, free: 19.91 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001477/13.65, allocations: 242.4 kB / 3.969 GB, free: 19.91 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01724/13.67, allocations: 4.493 MB / 3.973 GB, free: 19.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/13.67, allocations: 6.812 kB / 3.973 GB, free: 19.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009665/13.67, allocations: 110.5 kB / 3.973 GB, free: 19.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004305/13.67, allocations: 221.1 kB / 3.974 GB, free: 19.3 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01684/13.69, allocations: 4.188 MB / 3.978 GB, free: 19.27 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.0433/13.73, allocations: 19.07 MB / 3.996 GB, free: 8.297 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/13.74, allocations: 2.773 MB / 3.999 GB, free: 8.242 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0561/13.8, allocations: 17.01 MB / 4.016 GB, free: 13.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.438e-05/13.8, allocations: 53.72 kB / 4.016 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002738/13.8, allocations: 360.2 kB / 4.016 GB, free: 13.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 8.846e-06/13.8, allocations: 4 kB / 4.016 GB, free: 13.23 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.615/15.41, allocations: 69.99 MB / 4.084 GB, free: 51.13 MB / 0.4948 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.08051/15.5, allocations: 10.09 MB / 4.094 GB, free: 50.42 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004266/15.5, allocations: 1.698 MB / 4.096 GB, free: 50.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001048/15.5, allocations: 72.08 kB / 4.096 GB, free: 50.17 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001172/15.5, allocations: 1.183 MB / 4.097 GB, free: 49.79 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001845/15.5, allocations: 0.9359 MB / 4.098 GB, free: 49.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007121/15.5, allocations: 60.97 kB / 4.098 GB, free: 49.32 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002351/15.5, allocations: 423.2 kB / 4.098 GB, free: 49.01 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009492/15.51, allocations: 2.764 MB / 4.101 GB, free: 49 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01033/15.52, allocations: 3.332 MB / 4.104 GB, free: 48.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01248/15.54, allocations: 3.2 MB / 4.107 GB, free: 48.38 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.36e-05/15.54, allocations: 5.906 kB / 4.108 GB, free: 48.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.0362/15.57, allocations: 9.302 MB / 4.117 GB, free: 48.11 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001385/15.58, allocations: 6.084 MB / 4.123 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-05/15.58, allocations: 14.72 kB / 4.123 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1176/15.69, allocations: 15.93 MB / 4.138 GB, free: 41.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003192/15.7, allocations: 375.4 kB / 4.138 GB, free: 41.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03857/15.73, allocations: 10.82 MB / 4.149 GB, free: 40.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007764/15.74, allocations: 389.7 kB / 4.149 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001254/15.74, allocations: 173.5 kB / 4.15 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/15.74, allocations: 7 kB / 4.15 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04467/15.79, allocations: 8.606 MB / 4.158 GB, free: 40.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.572e-05/15.79, allocations: 14.38 kB / 4.158 GB, free: 40.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06596/15.85, allocations: 8.835 MB / 4.167 GB, free: 40.26 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003699/15.86, allocations: 440.2 kB / 4.167 GB, free: 40.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03312/15.89, allocations: 9.773 MB / 4.177 GB, free: 39.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007351/15.9, allocations: 385.6 kB / 4.177 GB, free: 39.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001303/15.9, allocations: 171.1 kB / 4.177 GB, free: 39.11 MB / 0.4948 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.004797/15.91, allocations: 0.874 MB / 4.178 GB, free: 38.92 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/15.91, allocations: 255.7 kB / 4.178 GB, free: 38.79 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04715/15.95, allocations: 17.59 MB / 4.195 GB, free: 37.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001679/15.95, allocations: 122.9 kB / 4.195 GB, free: 37.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/15.95, allocations: 1.859 kB / 4.195 GB, free: 37.21 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03676/15.99, allocations: 15.78 MB / 4.211 GB, free: 30.43 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06469/16.06, allocations: 27.24 MB / 4.238 GB, free: 7.688 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.914e-05/16.06, allocations: 0 / 4.238 GB, free: 7.688 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/16.06, allocations: 226.7 kB / 4.238 GB, free: 7.508 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.5654/16.62, allocations: 27.95 MB / 4.265 GB, free: 65.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001002/16.62, allocations: 110.2 kB / 4.265 GB, free: 65.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04241/16.67, allocations: 16.02 MB / 4.281 GB, free: 64.79 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.087/16.75, allocations: 14.45 MB / 4.295 GB, free: 63.85 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06104/16.81, allocations: 22.75 MB / 4.317 GB, free: 63.09 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004239/16.82, allocations: 1.136 MB / 4.318 GB, free: 62.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001414/16.82, allocations: 57.59 kB / 4.318 GB, free: 62.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007271/16.83, allocations: 425.6 kB / 4.319 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00129/16.83, allocations: 263.7 kB / 4.319 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006094/16.83, allocations: 129.5 kB / 4.319 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00323/16.83, allocations: 1.326 MB / 4.32 GB, free: 62.62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.522e-06/16.83, allocations: 2.062 kB / 4.32 GB, free: 62.62 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02267/16.86, allocations: 4.492 MB / 4.325 GB, free: 62.62 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.09199/16.95, allocations: 25.44 MB / 4.35 GB, free: 60.58 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05361/17, allocations: 12.44 MB / 4.362 GB, free: 59.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/17, allocations: 4.5 kB / 4.362 GB, free: 59.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02125/17.02, allocations: 5.791 MB / 4.367 GB, free: 57.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009851/17.03, allocations: 1.028 MB / 4.368 GB, free: 56.92 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]