Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01739/0.01739, allocations: 107.2 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001838/0.001838, allocations: 166.8 kB / 15.93 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.775/1.775, allocations: 170.9 MB / 187.6 MB, free: 1 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2896/0.2896, allocations: 38.08 MB / 265.1 MB, free: 3.961 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008048/0.000805, allocations: 8 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1053, allocations: 48.71 MB / 372.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.4584/0.5637, allocations: 90.24 MB / 462.5 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06856/0.6324, allocations: 37.61 MB / 0.4884 GB, free: 7.188 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004299/0.6367, allocations: 101.6 kB / 0.4885 GB, free: 7.133 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006346/0.6431, allocations: 1.224 MB / 0.4897 GB, free: 6.082 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0368/0.68, allocations: 6.428 MB / 0.496 GB, free: 388 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04044/0.7205, allocations: 7.405 MB / 0.5032 GB, free: 8.961 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01256/0.7331, allocations: 4.222 MB / 0.5073 GB, free: 4.738 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004286/0.7374, allocations: 1.563 MB / 0.5089 GB, free: 3.156 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07292/0.8104, allocations: 24.18 MB / 0.5325 GB, free: 10.95 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06942/0.8799, allocations: 23.84 MB / 0.5558 GB, free: 3.094 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.8812, allocations: 136 kB / 0.5559 GB, free: 2.961 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03772/0.9189, allocations: 12.48 MB / 0.5681 GB, free: 6.465 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002255/0.9212, allocations: 0.9037 MB / 0.569 GB, free: 5.559 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001571/0.9228, allocations: 0.6212 MB / 0.5696 GB, free: 4.93 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01845/0.9413, allocations: 6.911 MB / 0.5763 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.9414, allocations: 0 / 0.5763 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.9414, allocations: 4 kB / 0.5763 GB, free: 14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001516/0.9415, allocations: 0 / 0.5763 GB, free: 14 MB / 442.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.01679/0.9583, allocations: 3.96 MB / 0.5802 GB, free: 9.973 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.9584, allocations: 8.031 kB / 0.5802 GB, free: 9.965 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001655/0.9601, allocations: 419.7 kB / 0.5806 GB, free: 9.543 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01023/0.9704, allocations: 0.9642 MB / 0.5815 GB, free: 8.574 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005493/0.9759, allocations: 1.717 MB / 0.5832 GB, free: 6.801 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000466/0.9764, allocations: 284.1 kB / 0.5835 GB, free: 6.508 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009617/0.9774, allocations: 232 kB / 0.5837 GB, free: 6.281 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01584/0.9933, allocations: 4.414 MB / 0.588 GB, free: 1.688 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/0.9934, allocations: 7.938 kB / 0.588 GB, free: 1.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005052/0.9939, allocations: 104 kB / 0.5881 GB, free: 1.578 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005782/0.9945, allocations: 276.7 kB / 0.5884 GB, free: 1.305 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3843/1.379, allocations: 4.185 MB / 0.5925 GB, free: 75.89 MB / 442.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.0413/1.42, allocations: 18.85 MB / 0.6109 GB, free: 65.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/1.432, allocations: 2.767 MB / 0.6136 GB, free: 65.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06281/1.494, allocations: 17.22 MB / 0.6304 GB, free: 54.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.741e-05/1.495, allocations: 55.69 kB / 0.6305 GB, free: 54.15 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00289/1.498, allocations: 321.1 kB / 0.6308 GB, free: 54.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 1.719e-05/1.498, allocations: 0 / 0.6308 GB, free: 54.03 MB / 442.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: pump.medium.h 4: pump.medium.p 5: heater.mediums[1].h 6: radiator.mediums[1].p 7: pipe.mediums[2].p 8: pipe.mediums[2].h 9: heater.mediums[1].p 10: pipe.mediums[1].p 11: pipe.mediums[1].h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=281): time 1.245/2.742, allocations: 74.48 MB / 0.7035 GB, free: 9.793 MB / 458.7 MB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 1.191/3.934, allocations: 126.6 MB / 0.8271 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003451/3.937, allocations: 1.843 MB / 0.8289 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008794/3.938, allocations: 73.08 kB / 0.829 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001016/3.939, allocations: 1.2 MB / 0.8302 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001584/3.941, allocations: 0.9364 MB / 0.8311 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005312/3.941, allocations: 56.72 kB / 0.8312 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002026/3.941, allocations: 429 kB / 0.8316 GB, free: 114 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008924/3.95, allocations: 2.743 MB / 0.8342 GB, free: 114 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009718/3.96, allocations: 3.366 MB / 0.8375 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01178/3.972, allocations: 3.168 MB / 0.8406 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.62e-05/3.972, allocations: 7.438 kB / 0.8406 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.03417/4.006, allocations: 9.27 MB / 0.8497 GB, free: 113 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001758/4.008, allocations: 7.244 MB / 0.8568 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.094e-05/4.008, allocations: 19.62 kB / 0.8568 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1177/4.126, allocations: 16.3 MB / 0.8727 GB, free: 98.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002902/4.129, allocations: 369.6 kB / 0.873 GB, free: 98.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03897/4.168, allocations: 10.91 MB / 0.8837 GB, free: 90.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008343/4.176, allocations: 433.4 kB / 0.8841 GB, free: 90.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/4.178, allocations: 178.1 kB / 0.8843 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/4.178, allocations: 4 kB / 0.8843 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03005/4.208, allocations: 8.602 MB / 0.8927 GB, free: 82.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.527e-05/4.208, allocations: 23.95 kB / 0.8927 GB, free: 82.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05968/4.267, allocations: 9.041 MB / 0.9015 GB, free: 73.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004946/4.272, allocations: 432 kB / 0.902 GB, free: 73.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04924/4.322, allocations: 9.907 MB / 0.9116 GB, free: 63.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01042/4.332, allocations: 419.7 kB / 0.912 GB, free: 63.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001565/4.334, allocations: 176.5 kB / 0.9122 GB, free: 62.93 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 (181): * Single equations (assignments): 179 * 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.003819/4.338, allocations: 0.8734 MB / 0.913 GB, free: 62.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001913/4.34, allocations: 256.1 kB / 0.9133 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0517/4.392, allocations: 17.13 MB / 0.93 GB, free: 44.62 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001528/4.392, allocations: 115.8 kB / 0.9301 GB, free: 44.51 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/4.392, allocations: 3.953 kB / 0.9301 GB, free: 44.51 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04007/4.432, allocations: 15.37 MB / 0.9451 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3982/4.83, allocations: 28.58 MB / 0.9731 GB, free: 225.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.577e-05/4.83, allocations: 10.64 kB / 0.9731 GB, free: 225.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/4.832, allocations: 217.1 kB / 0.9733 GB, free: 225.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.14/4.972, allocations: 26.75 MB / 0.9994 GB, free: 219.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001071/4.974, allocations: 106.5 kB / 0.9995 GB, free: 219.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04567/5.019, allocations: 15.84 MB / 1.015 GB, free: 204.5 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.1011/5.12, allocations: 14.14 MB / 1.029 GB, free: 190.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08812/5.209, allocations: 23.37 MB / 1.052 GB, free: 167.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003676/5.212, allocations: 1.103 MB / 1.053 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001311/5.214, allocations: 59.78 kB / 1.053 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007732/5.221, allocations: 467.9 kB / 1.053 GB, free: 165.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001285/5.223, allocations: 262.2 kB / 1.053 GB, free: 165.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005697/5.223, allocations: 127.9 kB / 1.054 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002737/5.226, allocations: 1.27 MB / 1.055 GB, free: 164 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.92e-07/5.226, allocations: 0 / 1.055 GB, free: 164 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01679/5.243, allocations: 4.083 MB / 1.059 GB, free: 160.2 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: 58 ($cse85.phase,$cse85.region,$cse88.phase,$cse88.region,$cse89.phase,$cse89.region,$cse91.phase,$cse91.region,$cse92.region3boundary,$cse93.region3boundary,$cse94.phase,$cse94.region,$cse95.phase,$cse95.region,$cse100.phase,$cse100.region,$cse101.phase,$cse101.region,$cse102.region3boundary,$cse103.region3boundary,$cse104.phase,$cse104.region,$cse111.phase,$cse111.region,$cse112.phase,$cse112.region,$cse113.region3boundary,$cse114.region3boundary,$cse115.phase,$cse115.region,$cse125.phase,$cse125.region,$cse126.phase,$cse126.region,$cse127.phase,$cse127.region,$cse128.phase,$cse128.region,$cse129.region3boundary,$cse130.region3boundary,$cse131.phase,$cse131.region,$cse132.region3boundary,$cse133.region3boundary,$cse134.phase,$cse134.region,$cse141.phase,$cse141.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 (105): * Single equations (assignments): 98 * 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 82,20 122} Notification: Performance of Backend phase and start with SimCode phase: time 0.07212/5.315, allocations: 22.83 MB / 1.081 GB, free: 137.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05827/5.373, allocations: 12.78 MB / 1.094 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/5.374, allocations: 4.375 kB / 1.094 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02465/5.398, allocations: 5.933 MB / 1.099 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009433/5.408, allocations: 1.024 MB / 1.1 GB, free: 117.7 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497: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]