Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.885/1.885, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003635, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07953/0.07992, allocations: 44.51 MB / 308.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3509/0.4309, allocations: 90.92 MB / 399.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05581/0.4867, allocations: 37.86 MB / 437.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003895/0.4907, allocations: 102.2 kB / 437.2 MB, free: 10.08 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004523/0.4952, allocations: 1.224 MB / 438.5 MB, free: 9.027 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02446/0.5197, allocations: 6.49 MB / 444.9 MB, free: 3.102 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02681/0.5466, allocations: 7.472 MB / 452.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.5572, allocations: 5.45 MB / 457.9 MB, free: 6.152 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0035/0.5607, allocations: 1.605 MB / 459.5 MB, free: 4.531 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05124/0.612, allocations: 24.39 MB / 483.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04842/0.6605, allocations: 24 MB / 0.496 GB, free: 4.105 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008761/0.6614, allocations: 140 kB / 0.4961 GB, free: 3.969 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03224/0.6937, allocations: 12.66 MB / 0.5085 GB, free: 7.297 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001963/0.6957, allocations: 0.9232 MB / 0.5094 GB, free: 6.371 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.6972, allocations: 0.6212 MB / 0.51 GB, free: 5.742 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01608/0.7133, allocations: 6.996 MB / 0.5168 GB, free: 14.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.431e-06/0.7134, allocations: 0 / 0.5168 GB, free: 14.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.397e-06/0.7134, allocations: 4 kB / 0.5168 GB, free: 14.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.962e-05/0.7135, allocations: 0 / 0.5168 GB, free: 14.73 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.01332/0.7268, allocations: 4.022 MB / 0.5207 GB, free: 10.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.7269, allocations: 12.03 kB / 0.5207 GB, free: 10.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008721/0.7356, allocations: 0.9992 MB / 0.5217 GB, free: 9.621 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004763/0.7404, allocations: 1.717 MB / 0.5234 GB, free: 7.848 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004878/0.741, allocations: 284.1 kB / 0.5237 GB, free: 7.555 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008479/0.7418, allocations: 251.8 kB / 0.5239 GB, free: 7.309 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/0.7555, allocations: 4.44 MB / 0.5282 GB, free: 2.688 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.224e-05/0.7556, allocations: 11.94 kB / 0.5283 GB, free: 2.676 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004439/0.7561, allocations: 104 kB / 0.5284 GB, free: 2.574 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000467/0.7566, allocations: 268.7 kB / 0.5286 GB, free: 2.309 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2305/0.987, allocations: 4.197 MB / 0.5327 GB, free: 163.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.03073/1.018, allocations: 18.81 MB / 0.5511 GB, free: 150.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009836/1.028, allocations: 2.872 MB / 0.5539 GB, free: 148.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03936/1.067, allocations: 17.22 MB / 0.5707 GB, free: 135.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.992e-05/1.067, allocations: 55.97 kB / 0.5708 GB, free: 135.1 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001596/1.069, allocations: 220.7 kB / 0.571 GB, free: 134.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 6.342e-06/1.069, allocations: 0 / 0.571 GB, free: 134.9 MB / 426.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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.2364/1.305, allocations: 31.34 MB / 0.6016 GB, free: 104.5 MB / 426.7 MB 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.002456/1.308, allocations: 1.043 MB / 0.6026 GB, free: 103.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/1.311, allocations: 1.837 MB / 0.6044 GB, free: 101.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005258/1.311, allocations: 69.64 kB / 0.6044 GB, free: 101.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006406/1.312, allocations: 1.085 MB / 0.6055 GB, free: 100.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009633/1.313, allocations: 0.832 MB / 0.6063 GB, free: 99.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/1.313, allocations: 55.94 kB / 0.6064 GB, free: 99.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/1.313, allocations: 420.4 kB / 0.6068 GB, free: 99.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/1.318, allocations: 2.016 MB / 0.6087 GB, free: 97.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005328/1.323, allocations: 2.603 MB / 0.6113 GB, free: 94.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005432/1.329, allocations: 2.229 MB / 0.6135 GB, free: 91.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-05/1.329, allocations: 8 kB / 0.6135 GB, free: 91.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01622/1.345, allocations: 6.448 MB / 0.6198 GB, free: 85.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002721/1.345, allocations: 0.571 MB / 0.6203 GB, free: 84.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/1.346, allocations: 16 kB / 0.6203 GB, free: 84.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04158/1.387, allocations: 8.074 MB / 0.6282 GB, free: 76.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002104/1.389, allocations: 399.4 kB / 0.6286 GB, free: 76.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01503/1.404, allocations: 6.795 MB / 0.6352 GB, free: 69.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004764/1.409, allocations: 451.2 kB / 0.6357 GB, free: 68.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007126/1.41, allocations: 152.5 kB / 0.6358 GB, free: 68.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/1.41, allocations: 4 kB / 0.6358 GB, free: 68.68 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01579/1.426, allocations: 5.939 MB / 0.6416 GB, free: 62.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-05/1.426, allocations: 16 kB / 0.6416 GB, free: 62.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01616/1.442, allocations: 4.173 MB / 0.6457 GB, free: 58.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/1.444, allocations: 463.3 kB / 0.6461 GB, free: 58.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/1.456, allocations: 5.796 MB / 0.6518 GB, free: 52.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004092/1.461, allocations: 444.2 kB / 0.6522 GB, free: 51.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006609/1.461, allocations: 143.9 kB / 0.6524 GB, free: 51.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (185): * Single equations (assignments): 181 * Array equations: 2 * 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 {3 12,20 122} Notification: Performance of prepare postOptimizeDAE: time 0.002155/1.463, allocations: 0.8188 MB / 0.6532 GB, free: 50.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006709/1.464, allocations: 245 kB / 0.6534 GB, free: 50.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02605/1.49, allocations: 12.47 MB / 0.6656 GB, free: 37.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02384/1.514, allocations: 11.07 MB / 0.6764 GB, free: 26.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-05/1.514, allocations: 0 / 0.6764 GB, free: 26.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02321/1.537, allocations: 11.18 MB / 0.6873 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2889/1.826, allocations: 19.04 MB / 0.7059 GB, free: 153.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.551e-05/1.826, allocations: 1.844 kB / 0.7059 GB, free: 153.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003121/1.83, allocations: 444.2 kB / 0.7063 GB, free: 153.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02358/1.853, allocations: 5.947 MB / 0.7121 GB, free: 152.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000644/1.854, allocations: 88.27 kB / 0.7122 GB, free: 152.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/1.869, allocations: 10.83 MB / 0.7228 GB, free: 145.3 MB / 426.7 MB 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.003345/1.872, allocations: 1.82 MB / 0.7246 GB, free: 144.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03358/1.906, allocations: 14.69 MB / 0.7389 GB, free: 137.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002496/1.908, allocations: 0.9429 MB / 0.7398 GB, free: 137.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007653/1.909, allocations: 65.58 kB / 0.7399 GB, free: 137.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004028/1.913, allocations: 385 kB / 0.7403 GB, free: 137 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007233/1.914, allocations: 226 kB / 0.7405 GB, free: 136.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003609/1.914, allocations: 110.7 kB / 0.7406 GB, free: 136.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003652/1.918, allocations: 1.263 MB / 0.7418 GB, free: 135.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.717e-06/1.918, allocations: 1.406 kB / 0.7418 GB, free: 135.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01481/1.933, allocations: 3.511 MB / 0.7452 GB, free: 132.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse41.phase,$cse41.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse47.region3boundary,$cse48.region3boundary,$cse49.phase,$cse49.region,$cse51.phase,$cse51.region,$cse53.phase,$cse53.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 (213): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 1,1 1,1 10,1 1,2 12,1 1,2 4,2 9,1 9,9 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.01086/1.944, allocations: 2.547 MB / 0.7477 GB, free: 130.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03003/1.974, allocations: 9.154 MB / 0.7567 GB, free: 121.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.47e-06/1.974, allocations: 4 kB / 0.7567 GB, free: 121.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01553/1.99, allocations: 4.262 MB / 0.7608 GB, free: 116.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01034/2, allocations: 1.026 MB / 0.7618 GB, free: 115.8 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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]