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.01756/0.01756, allocations: 162.7 kB / 15.12 MB, free: 5.957 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.871/1.871, allocations: 170.8 MB / 186.6 MB, free: 1.109 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.001851/0.00185, allocations: 102.8 kB / 226.2 MB, free: 10.09 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.4707/0.4707, allocations: 38.06 MB / 303.7 MB, free: 42.34 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004898/0.0004901, allocations: 16 kB / 363 MB, free: 5.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1145, allocations: 48.71 MB / 411.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.4635/0.578, allocations: 100.9 MB / 0.5006 GB, free: 2.363 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1041/0.6822, allocations: 40.47 MB / 0.5401 GB, free: 36 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004514/0.6867, allocations: 107.2 kB / 0.5402 GB, free: 15.93 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005369/0.6922, allocations: 1.084 MB / 0.5412 GB, free: 14.83 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0298/0.722, allocations: 6.907 MB / 0.548 GB, free: 7.926 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04104/0.7631, allocations: 7.448 MB / 0.5553 GB, free: 484 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.02216/0.7853, allocations: 9.022 MB / 0.5641 GB, free: 7.426 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006242/0.7916, allocations: 1.563 MB / 0.5656 GB, free: 5.848 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4201/1.212, allocations: 24.58 MB / 0.5896 GB, free: 34.6 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06673/1.279, allocations: 25.09 MB / 0.6141 GB, free: 34.24 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001168/1.28, allocations: 135.3 kB / 0.6142 GB, free: 34.24 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03271/1.313, allocations: 12.08 MB / 0.626 GB, free: 29.68 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002379/1.315, allocations: 0.9832 MB / 0.627 GB, free: 29.34 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001877/1.317, allocations: 0.6242 MB / 0.6276 GB, free: 28.98 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01567/1.333, allocations: 6.914 MB / 0.6343 GB, free: 25.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/1.333, allocations: 4 kB / 0.6344 GB, free: 25.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.333, allocations: 0 / 0.6344 GB, free: 25.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000139/1.333, allocations: 0 / 0.6344 GB, free: 25.91 MB / 426.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.01574/1.349, allocations: 3.962 MB / 0.6382 GB, free: 22.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/1.349, allocations: 12.03 kB / 0.6382 GB, free: 22.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001484/1.35, allocations: 416.4 kB / 0.6386 GB, free: 22.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009518/1.36, allocations: 0.9568 MB / 0.6396 GB, free: 21.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005132/1.365, allocations: 1.714 MB / 0.6412 GB, free: 20.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003575/1.365, allocations: 284.4 kB / 0.6415 GB, free: 20.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000794/1.366, allocations: 233.2 kB / 0.6417 GB, free: 20.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/1.38, allocations: 4.444 MB / 0.6461 GB, free: 17.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-05/1.38, allocations: 5.875 kB / 0.6461 GB, free: 17.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004502/1.38, allocations: 104.8 kB / 0.6462 GB, free: 17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004578/1.381, allocations: 270.2 kB / 0.6464 GB, free: 16.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01485/1.395, allocations: 4.194 MB / 0.6505 GB, free: 13.8 MB / 426.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.03701/1.433, allocations: 18.87 MB / 0.669 GB, free: 12.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/1.444, allocations: 2.769 MB / 0.6717 GB, free: 10.67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00452/1.448, allocations: 1.395 MB / 0.673 GB, free: 9.758 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06044/1.509, allocations: 17.21 MB / 0.6898 GB, free: 6.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.537e-05/1.509, allocations: 57.81 kB / 0.6899 GB, free: 6.789 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002281/1.511, allocations: 323.7 kB / 0.6902 GB, free: 6.496 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 5.631e-06/1.511, allocations: 0 / 0.6902 GB, free: 6.496 MB / 458.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: pump.medium.p 2: tank.medium.h 3: radiator.mediums[1].h 4: pipe.mediums[1].h 5: pipe.mediums[1].p 6: pipe.mediums[2].p 7: pipe.mediums[2].h 8: heater.mediums[1].h 9: radiator.mediums[1].p 10: pump.medium.h 11: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=281): time 1.258/2.769, allocations: 74.82 MB / 0.7633 GB, free: 3.102 MB / 0.5105 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 1.008/3.777, allocations: 120.2 MB / 0.8806 GB, free: 139.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/3.781, allocations: 1.846 MB / 0.8824 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008656/3.782, allocations: 77.69 kB / 0.8825 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001024/3.783, allocations: 1.197 MB / 0.8837 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001534/3.784, allocations: 0.9415 MB / 0.8846 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005309/3.785, allocations: 60 kB / 0.8846 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001939/3.785, allocations: 428.2 kB / 0.885 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008561/3.794, allocations: 2.731 MB / 0.8877 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009159/3.803, allocations: 3.385 MB / 0.891 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0115/3.814, allocations: 3.164 MB / 0.8941 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.409e-05/3.814, allocations: 7.938 kB / 0.8941 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.03253/3.847, allocations: 9.292 MB / 0.9032 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003521/3.847, allocations: 0.6117 MB / 0.9038 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/3.847, allocations: 20 kB / 0.9038 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1162/3.964, allocations: 16.17 MB / 0.9196 GB, free: 99.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002966/3.967, allocations: 367.4 kB / 0.92 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05052/4.017, allocations: 10.88 MB / 0.9306 GB, free: 87.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/4.027, allocations: 431.4 kB / 0.931 GB, free: 87.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/4.028, allocations: 175.8 kB / 0.9312 GB, free: 87.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/4.028, allocations: 8 kB / 0.9312 GB, free: 87.27 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04312/4.071, allocations: 8.617 MB / 0.9396 GB, free: 78.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.16e-05/4.072, allocations: 16 kB / 0.9396 GB, free: 78.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09251/4.164, allocations: 8.953 MB / 0.9483 GB, free: 69.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004476/4.169, allocations: 443.3 kB / 0.9488 GB, free: 69.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03887/4.208, allocations: 9.872 MB / 0.9584 GB, free: 59.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007456/4.215, allocations: 423.6 kB / 0.9588 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00089/4.216, allocations: 163.9 kB / 0.959 GB, free: 58.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (183): * Single equations (assignments): 181 * 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 {15 79,17 85} Notification: Performance of prepare postOptimizeDAE: time 0.002737/4.219, allocations: 0.8851 MB / 0.9598 GB, free: 57.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009643/4.22, allocations: 252.9 kB / 0.9601 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04118/4.261, allocations: 17.04 MB / 0.9767 GB, free: 40.43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001464/4.261, allocations: 111.8 kB / 0.9768 GB, free: 40.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/4.261, allocations: 0 / 0.9768 GB, free: 40.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04219/4.303, allocations: 15.28 MB / 0.9917 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3949/4.698, allocations: 27.88 MB / 1.019 GB, free: 206 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.916e-05/4.698, allocations: 2.688 kB / 1.019 GB, free: 206 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001897/4.7, allocations: 213.5 kB / 1.019 GB, free: 206 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1303/4.831, allocations: 24.58 MB / 1.043 GB, free: 203.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000936/4.832, allocations: 98.44 kB / 1.043 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04381/4.875, allocations: 15.59 MB / 1.058 GB, free: 197.1 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.08232/4.958, allocations: 13.67 MB / 1.072 GB, free: 186.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0529/5.011, allocations: 21.84 MB / 1.093 GB, free: 166.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003752/5.015, allocations: 1.109 MB / 1.094 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001217/5.016, allocations: 52 kB / 1.094 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007602/5.023, allocations: 463.1 kB / 1.095 GB, free: 164.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/5.025, allocations: 265.9 kB / 1.095 GB, free: 164.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006717/5.026, allocations: 131.9 kB / 1.095 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002847/5.028, allocations: 1.298 MB / 1.096 GB, free: 163 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.21e-07/5.028, allocations: 0 / 1.096 GB, free: 163 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01749/5.046, allocations: 4.091 MB / 1.1 GB, free: 159.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 58 ($cse82.phase,$cse82.region,$cse85.phase,$cse85.region,$cse86.phase,$cse86.region,$cse88.phase,$cse88.region,$cse89.region3boundary,$cse90.region3boundary,$cse91.phase,$cse91.region,$cse92.phase,$cse92.region,$cse97.phase,$cse97.region,$cse98.phase,$cse98.region,$cse99.region3boundary,$cse100.region3boundary,$cse101.phase,$cse101.region,$cse111.phase,$cse111.region,$cse112.phase,$cse112.region,$cse113.region3boundary,$cse114.region3boundary,$cse115.phase,$cse115.region,$cse122.phase,$cse122.region,$cse123.phase,$cse123.region,$cse124.phase,$cse124.region,$cse125.phase,$cse125.region,$cse126.region3boundary,$cse127.region3boundary,$cse128.phase,$cse128.region,$cse129.region3boundary,$cse130.region3boundary,$cse131.phase,$cse131.region,$cse138.phase,$cse138.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 (109): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 81,19 120} Notification: Performance of Backend phase and start with SimCode phase: time 0.08097/5.127, allocations: 23.49 MB / 1.123 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05951/5.186, allocations: 12.7 MB / 1.136 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/5.187, allocations: 0 / 1.136 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02483/5.211, allocations: 5.95 MB / 1.142 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01068/5.222, allocations: 1.13 MB / 1.143 GB, free: 116.3 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4548:9-4548:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]