Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01471/0.01471, allocations: 175.2 kB / 15.12 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.025/2.025, allocations: 194.5 MB / 210.3 MB, free: 8.578 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001998/0.001998, allocations: 112.7 kB / 255.6 MB, free: 11.2 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2538/0.2538, allocations: 40.01 MB / 340.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004809/0.0004809, allocations: 9.938 kB / 406.3 MB, free: 52.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.09989, allocations: 54.87 MB / 461.1 MB, free: 3.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.29/8.39, allocations: 2.67 GB / 3.121 GB, free: 77.16 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/8.39, allocations: 79.8 kB / 3.121 GB, free: 77.16 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.399/13.79, allocations: 1.024 GB / 4.145 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.567e-06/13.79, allocations: 0 / 4.145 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003697/13.79, allocations: 65.77 kB / 4.145 GB, free: 26.25 MB / 0.5105 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.02444/13.81, allocations: 4.701 MB / 4.149 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/13.81, allocations: 9.25 kB / 4.149 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002568/13.82, allocations: 422.8 kB / 4.15 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01267/13.83, allocations: 1.028 MB / 4.151 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01074/13.84, allocations: 2.256 MB / 4.153 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006142/13.84, allocations: 288.2 kB / 4.153 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001763/13.84, allocations: 243.9 kB / 4.154 GB, free: 23.24 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01883/13.86, allocations: 4.489 MB / 4.158 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/13.86, allocations: 6.812 kB / 4.158 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001217/13.86, allocations: 108.3 kB / 4.158 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004214/13.86, allocations: 228.9 kB / 4.158 GB, free: 22.62 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01698/13.88, allocations: 4.194 MB / 4.162 GB, free: 22.59 MB / 0.5105 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.0443/13.92, allocations: 19.05 MB / 4.181 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/13.94, allocations: 2.781 MB / 4.184 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05528/13.99, allocations: 17.01 MB / 4.2 GB, free: 16.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.062e-05/13.99, allocations: 52.16 kB / 4.2 GB, free: 16.81 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002897/13.99, allocations: 369 kB / 4.201 GB, free: 16.68 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=181): time 1.405e-05/13.99, allocations: 0 / 4.201 GB, free: 16.68 MB / 0.5261 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 1.182/15.18, allocations: 70.07 MB / 4.269 GB, free: 5.434 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.6442/15.82, allocations: 10.08 MB / 4.279 GB, free: 56.53 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004432/15.83, allocations: 1.7 MB / 4.281 GB, free: 56.33 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001012/15.83, allocations: 74.05 kB / 4.281 GB, free: 56.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001148/15.83, allocations: 1.171 MB / 4.282 GB, free: 56.21 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001642/15.83, allocations: 0.9403 MB / 4.283 GB, free: 55.77 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006213/15.83, allocations: 59.34 kB / 4.283 GB, free: 55.77 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001979/15.83, allocations: 425.8 kB / 4.283 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009631/15.84, allocations: 2.766 MB / 4.286 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01092/15.85, allocations: 3.329 MB / 4.289 GB, free: 54.88 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/15.86, allocations: 3.198 MB / 4.292 GB, free: 54.84 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-05/15.86, allocations: 2.938 kB / 4.292 GB, free: 54.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.03266/15.9, allocations: 9.318 MB / 4.301 GB, free: 54.57 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001348/15.9, allocations: 6.069 MB / 4.307 GB, free: 48.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.187e-05/15.9, allocations: 15.56 kB / 4.307 GB, free: 48.26 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1135/16.01, allocations: 15.92 MB / 4.323 GB, free: 48.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/16.01, allocations: 371.2 kB / 4.323 GB, free: 48.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03677/16.05, allocations: 10.83 MB / 4.334 GB, free: 46.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007808/16.06, allocations: 386.4 kB / 4.334 GB, free: 46.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001268/16.06, allocations: 184.8 kB / 4.334 GB, free: 46.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/16.06, allocations: 3.875 kB / 4.334 GB, free: 46.89 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03151/16.09, allocations: 8.6 MB / 4.343 GB, free: 46.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.728e-05/16.09, allocations: 18.95 kB / 4.343 GB, free: 46.78 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05457/16.15, allocations: 8.838 MB / 4.351 GB, free: 46.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004563/16.15, allocations: 430.1 kB / 4.352 GB, free: 46.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04591/16.2, allocations: 9.777 MB / 4.361 GB, free: 45.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009007/16.21, allocations: 384 kB / 4.362 GB, free: 45.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009826/16.21, allocations: 172 kB / 4.362 GB, free: 45.57 MB / 0.5417 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.003882/16.21, allocations: 0.8749 MB / 4.363 GB, free: 45.38 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/16.21, allocations: 257 kB / 4.363 GB, free: 45.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04975/16.26, allocations: 17.59 MB / 4.38 GB, free: 44.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001573/16.26, allocations: 115.9 kB / 4.38 GB, free: 44.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/16.26, allocations: 3.328 kB / 4.38 GB, free: 44.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03885/16.3, allocations: 15.78 MB / 4.396 GB, free: 41.96 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0676/16.37, allocations: 27.23 MB / 4.422 GB, free: 30.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.395e-05/16.37, allocations: 3.812 kB / 4.422 GB, free: 30.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001951/16.37, allocations: 227.6 kB / 4.422 GB, free: 30.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1325/16.5, allocations: 27.52 MB / 4.449 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009795/16.5, allocations: 105.3 kB / 4.449 GB, free: 8.918 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04253/16.55, allocations: 16.02 MB / 4.465 GB, free: 11.07 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.5546/17.1, allocations: 14.47 MB / 4.479 GB, free: 70.39 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06301/17.16, allocations: 22.75 MB / 4.501 GB, free: 69.66 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004327/17.17, allocations: 1.125 MB / 4.503 GB, free: 69.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001567/17.17, allocations: 58.22 kB / 4.503 GB, free: 69.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007581/17.18, allocations: 433.1 kB / 4.503 GB, free: 69.54 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/17.18, allocations: 260.2 kB / 4.503 GB, free: 69.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006578/17.18, allocations: 132.8 kB / 4.503 GB, free: 69.53 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003326/17.18, allocations: 1.324 MB / 4.505 GB, free: 69.39 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.81e-07/17.18, allocations: 0 / 4.505 GB, free: 69.39 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02362/17.21, allocations: 4.513 MB / 4.509 GB, free: 69.38 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.09252/17.3, allocations: 25.47 MB / 4.534 GB, free: 67.41 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05364/17.35, allocations: 12.45 MB / 4.546 GB, free: 67.19 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/17.35, allocations: 3.75 kB / 4.546 GB, free: 67.19 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02125/17.37, allocations: 5.793 MB / 4.552 GB, free: 67.06 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009977/17.38, allocations: 1.022 MB / 4.553 GB, free: 67.04 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]