Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.621/1.621, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003428/0.0003432, allocations: 8 kB / 233.2 MB, free: 2.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08135/0.08171, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3388/0.4206, allocations: 90.21 MB / 362.2 MB, free: 4.473 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.07427/0.4949, allocations: 37.6 MB / 399.8 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003764/0.4988, allocations: 103.1 kB / 399.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005694/0.5045, allocations: 1.221 MB / 401.1 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02673/0.5313, allocations: 6.413 MB / 407.6 MB, free: 7.051 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0296/0.5609, allocations: 7.411 MB / 415 MB, free: 15.63 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01243/0.5734, allocations: 5.419 MB / 420.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003677/0.5771, allocations: 1.592 MB / 422 MB, free: 8.582 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3341/0.9112, allocations: 24.12 MB / 446.1 MB, free: 17.1 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05221/0.9635, allocations: 23.74 MB / 469.8 MB, free: 4.469 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009902/0.9645, allocations: 143.1 kB / 470 MB, free: 4.332 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04179/1.006, allocations: 12.98 MB / 483 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002286/1.009, allocations: 0.9211 MB / 483.9 MB, free: 12.29 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001496/1.01, allocations: 0.6206 MB / 484.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01775/1.028, allocations: 6.928 MB / 491.4 MB, free: 6.008 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/1.028, allocations: 0 / 491.4 MB, free: 6.008 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.028, allocations: 0 / 491.4 MB, free: 6.008 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001309/1.028, allocations: 0 / 491.4 MB, free: 6.008 MB / 362.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.01634/1.045, allocations: 3.97 MB / 495.4 MB, free: 2.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/1.045, allocations: 20 kB / 495.4 MB, free: 2.285 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001686/1.046, allocations: 411.2 kB / 495.8 MB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009829/1.056, allocations: 0.9578 MB / 496.8 MB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005353/1.062, allocations: 1.727 MB / 498.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004372/1.062, allocations: 290.2 kB / 498.8 MB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000914/1.063, allocations: 248.2 kB / 499 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/1.078, allocations: 4.447 MB / 0.4917 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.189e-05/1.078, allocations: 13.59 kB / 0.4917 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004457/1.078, allocations: 102.8 kB / 0.4918 GB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005413/1.079, allocations: 268.3 kB / 0.492 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/1.095, allocations: 4.209 MB / 0.4962 GB, free: 8.844 MB / 378.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.03961/1.135, allocations: 18.82 MB / 0.5145 GB, free: 7.727 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/1.146, allocations: 2.87 MB / 0.5173 GB, free: 5.727 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06109/1.207, allocations: 17.23 MB / 0.5342 GB, free: 2.797 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.475e-05/1.207, allocations: 56 kB / 0.5342 GB, free: 2.75 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001964/1.209, allocations: 222.9 kB / 0.5344 GB, free: 2.566 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 6.753e-06/1.209, allocations: 0 / 0.5344 GB, free: 2.566 MB / 410.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.4198/1.629, allocations: 31.34 MB / 0.565 GB, free: 7.828 MB / 442.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.003409/1.632, allocations: 1.041 MB / 0.5661 GB, free: 6.859 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/1.636, allocations: 1.829 MB / 0.5678 GB, free: 5.457 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006196/1.637, allocations: 63.58 kB / 0.5679 GB, free: 5.418 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009539/1.638, allocations: 1.1 MB / 0.569 GB, free: 4.684 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001195/1.639, allocations: 0.8315 MB / 0.5698 GB, free: 3.973 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003481/1.639, allocations: 51.69 kB / 0.5698 GB, free: 3.965 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002346/1.639, allocations: 418.9 kB / 0.5702 GB, free: 3.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006497/1.646, allocations: 2.019 MB / 0.5722 GB, free: 2.223 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006961/1.653, allocations: 2.599 MB / 0.5747 GB, free: 108 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2279/1.881, allocations: 2.229 MB / 0.5769 GB, free: 199.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-05/1.881, allocations: 4.062 kB / 0.5769 GB, free: 199.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02235/1.903, allocations: 6.453 MB / 0.5832 GB, free: 197.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003604/1.904, allocations: 0.5748 MB / 0.5838 GB, free: 197.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/1.904, allocations: 17.77 kB / 0.5838 GB, free: 197.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05372/1.957, allocations: 8.082 MB / 0.5917 GB, free: 196.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/1.961, allocations: 391.7 kB / 0.5921 GB, free: 196.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02031/1.981, allocations: 6.806 MB / 0.5987 GB, free: 193.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007152/1.988, allocations: 445.4 kB / 0.5991 GB, free: 193.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009221/1.989, allocations: 154.8 kB / 0.5993 GB, free: 193.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/1.989, allocations: 5.281 kB / 0.5993 GB, free: 193.2 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01923/2.008, allocations: 5.94 MB / 0.6051 GB, free: 190.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.518e-05/2.008, allocations: 19.59 kB / 0.6051 GB, free: 190.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02243/2.031, allocations: 4.167 MB / 0.6092 GB, free: 186.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003738/2.035, allocations: 463.1 kB / 0.6096 GB, free: 186.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01649/2.051, allocations: 5.788 MB / 0.6153 GB, free: 180.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006078/2.057, allocations: 437.1 kB / 0.6157 GB, free: 180.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006577/2.058, allocations: 155.9 kB / 0.6158 GB, free: 180 MB / 442.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.00225/2.06, allocations: 0.831 MB / 0.6167 GB, free: 179.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007576/2.061, allocations: 240.5 kB / 0.6169 GB, free: 179.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03102/2.092, allocations: 12.46 MB / 0.6291 GB, free: 166.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02761/2.12, allocations: 11.07 MB / 0.6399 GB, free: 155.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/2.12, allocations: 4 kB / 0.6399 GB, free: 155.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02784/2.148, allocations: 11.17 MB / 0.6508 GB, free: 144.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05078/2.199, allocations: 19.04 MB / 0.6694 GB, free: 125.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.181e-05/2.199, allocations: 0 / 0.6694 GB, free: 125.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005089/2.204, allocations: 451.4 kB / 0.6698 GB, free: 124.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04007/2.244, allocations: 5.936 MB / 0.6756 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008139/2.245, allocations: 91.92 kB / 0.6757 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04713/2.292, allocations: 10.83 MB / 0.6863 GB, free: 107.6 MB / 442.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.01333/2.305, allocations: 1.823 MB / 0.688 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04373/2.349, allocations: 14.69 MB / 0.7024 GB, free: 90.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002816/2.352, allocations: 0.948 MB / 0.7033 GB, free: 89.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/2.353, allocations: 63.98 kB / 0.7034 GB, free: 89.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005969/2.359, allocations: 383.4 kB / 0.7037 GB, free: 89.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000811/2.36, allocations: 230 kB / 0.704 GB, free: 89.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003784/2.36, allocations: 103.9 kB / 0.7041 GB, free: 89.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002398/2.363, allocations: 1.265 MB / 0.7053 GB, free: 87.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.363, allocations: 0 / 0.7053 GB, free: 87.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0126/2.375, allocations: 3.499 MB / 0.7087 GB, free: 84.62 MB / 442.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.0532/2.428, allocations: 16.6 MB / 0.7249 GB, free: 68.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03495/2.463, allocations: 9.15 MB / 0.7339 GB, free: 59.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/2.463, allocations: 0.6875 kB / 0.7339 GB, free: 59.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01535/2.479, allocations: 4.26 MB / 0.738 GB, free: 54.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008058/2.487, allocations: 1.048 MB / 0.739 GB, free: 53.81 MB / 442.7 MB [/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]