Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.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_FixedInitial,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",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.01051/0.01052, allocations: 176.6 kB / 15.13 MB, free: 5.949 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.237/2.237, allocations: 194.5 MB / 210.3 MB, free: 7.602 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.002784/0.002784, allocations: 116.1 kB / 255.6 MB, free: 10.22 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.2505/0.2505, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005235/0.0005238, allocations: 13.75 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1102, allocations: 54.87 MB / 461.1 MB, free: 3.207 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.6346/0.7449, allocations: 101.6 MB / 0.5495 GB, free: 7.684 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.09349/0.8385, allocations: 40.72 MB / 0.5893 GB, free: 2.109 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003939/0.8425, allocations: 107.6 kB / 0.5894 GB, free: 2.051 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00476/0.8473, allocations: 1.081 MB / 0.5905 GB, free: 1.582 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02845/0.8758, allocations: 6.98 MB / 0.5973 GB, free: 13.35 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03139/0.9072, allocations: 7.501 MB / 0.6046 GB, free: 8.938 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01536/0.9226, allocations: 9.206 MB / 0.6136 GB, free: 2.453 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004413/0.9271, allocations: 1.596 MB / 0.6152 GB, free: 0.875 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06555/0.9927, allocations: 24.92 MB / 0.6395 GB, free: 8.18 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06267/1.055, allocations: 25.35 MB / 0.6643 GB, free: 15.12 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001101/1.057, allocations: 140 kB / 0.6644 GB, free: 14.98 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03744/1.094, allocations: 12.28 MB / 0.6764 GB, free: 2.82 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002738/1.097, allocations: 0.9971 MB / 0.6774 GB, free: 1.836 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001947/1.099, allocations: 0.6212 MB / 0.678 GB, free: 1.207 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01811/1.117, allocations: 7.018 MB / 0.6848 GB, free: 10.57 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/1.117, allocations: 0 / 0.6848 GB, free: 10.57 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.506e-06/1.117, allocations: 0 / 0.6848 GB, free: 10.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001698/1.117, allocations: 0 / 0.6848 GB, free: 10.57 MB / 474.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.02634/1.144, allocations: 4.03 MB / 0.6888 GB, free: 6.508 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.174e-05/1.144, allocations: 8.031 kB / 0.6888 GB, free: 6.5 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02363/1.167, allocations: 418 kB / 0.6892 GB, free: 6.09 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0319/1.199, allocations: 0.9983 MB / 0.6901 GB, free: 5.094 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01004/1.209, allocations: 1.729 MB / 0.6918 GB, free: 3.34 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008112/1.21, allocations: 283 kB / 0.6921 GB, free: 3.059 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001553/1.212, allocations: 239.8 kB / 0.6923 GB, free: 2.836 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02536/1.237, allocations: 4.452 MB / 0.6967 GB, free: 14.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/1.238, allocations: 11.92 kB / 0.6967 GB, free: 14.23 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009742/1.239, allocations: 102.9 kB / 0.6968 GB, free: 14.14 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008641/1.239, allocations: 268.7 kB / 0.697 GB, free: 13.87 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02554/1.265, allocations: 4.207 MB / 0.7011 GB, free: 9.648 MB / 490.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.06152/1.327, allocations: 18.84 MB / 0.7195 GB, free: 5.414 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01884/1.345, allocations: 2.867 MB / 0.7223 GB, free: 2.543 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008055/1.354, allocations: 1.583 MB / 0.7239 GB, free: 0.957 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3912/1.745, allocations: 17.22 MB / 0.7407 GB, free: 182.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.673e-05/1.745, allocations: 60.41 kB / 0.7408 GB, free: 182.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001914/1.747, allocations: 209.7 kB / 0.741 GB, free: 182.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 6.342e-06/1.747, allocations: 0 / 0.741 GB, free: 182.7 MB / 0.4948 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: pump.medium.p 2: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.4769/2.224, allocations: 33.64 MB / 0.7738 GB, free: 160.4 MB / 0.4948 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.003176/2.227, allocations: 1.022 MB / 0.7748 GB, free: 159.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003077/2.23, allocations: 1.829 MB / 0.7766 GB, free: 157.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006363/2.231, allocations: 65.7 kB / 0.7767 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008609/2.232, allocations: 1.173 MB / 0.7778 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001171/2.233, allocations: 0.828 MB / 0.7786 GB, free: 155.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003651/2.233, allocations: 56 kB / 0.7787 GB, free: 155.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001689/2.233, allocations: 415.5 kB / 0.7791 GB, free: 155 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005944/2.239, allocations: 2.02 MB / 0.781 GB, free: 152.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006379/2.246, allocations: 2.603 MB / 0.7836 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006589/2.252, allocations: 2.234 MB / 0.7858 GB, free: 147.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.916e-05/2.252, allocations: 8 kB / 0.7858 GB, free: 147.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01879/2.271, allocations: 5.914 MB / 0.7915 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003184/2.272, allocations: 0.583 MB / 0.7921 GB, free: 141 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.819e-05/2.272, allocations: 23.94 kB / 0.7921 GB, free: 141 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01773/2.289, allocations: 3.168 MB / 0.7952 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005232/2.295, allocations: 0.6085 MB / 0.7958 GB, free: 137.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/2.311, allocations: 7.628 MB / 0.8033 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01027/2.321, allocations: 439.4 kB / 0.8037 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001164/2.322, allocations: 159.9 kB / 0.8038 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/2.322, allocations: 4 kB / 0.8038 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01874/2.341, allocations: 5.33 MB / 0.809 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.347e-05/2.341, allocations: 16 kB / 0.8091 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008786/2.35, allocations: 2.089 MB / 0.8111 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006259/2.356, allocations: 0.6826 MB / 0.8118 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01524/2.372, allocations: 10.35 MB / 0.8219 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006531/2.378, allocations: 443.3 kB / 0.8223 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006223/2.379, allocations: 147.9 kB / 0.8224 GB, free: 109 MB / 0.4948 GB 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 (288): * Single equations (assignments): 277 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 10,2 4,1 1,1 1,2 7,4 14,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002194/2.381, allocations: 0.8349 MB / 0.8233 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007815/2.382, allocations: 245.1 kB / 0.8235 GB, free: 108 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03193/2.414, allocations: 12.35 MB / 0.8356 GB, free: 95.51 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05404/2.468, allocations: 11.03 MB / 0.8463 GB, free: 84.39 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/2.468, allocations: 0 / 0.8463 GB, free: 84.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05115/2.519, allocations: 11.13 MB / 0.8572 GB, free: 73.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04865/2.568, allocations: 19.2 MB / 0.8759 GB, free: 53.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.879e-05/2.568, allocations: 0 / 0.8759 GB, free: 53.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004009/2.572, allocations: 452.5 kB / 0.8764 GB, free: 53.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02533/2.597, allocations: 5.507 MB / 0.8817 GB, free: 47.76 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006476/2.598, allocations: 91.92 kB / 0.8818 GB, free: 47.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01736/2.615, allocations: 10.53 MB / 0.8921 GB, free: 36.88 MB / 0.4948 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.004997/2.62, allocations: 1.608 MB / 0.8937 GB, free: 35.24 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04091/2.661, allocations: 14.51 MB / 0.9079 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002925/2.664, allocations: 0.948 MB / 0.9088 GB, free: 19.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007907/2.665, allocations: 59.98 kB / 0.9088 GB, free: 19.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005824/2.671, allocations: 380.5 kB / 0.9092 GB, free: 19.17 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008944/2.672, allocations: 241.9 kB / 0.9094 GB, free: 18.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003742/2.672, allocations: 103.9 kB / 0.9095 GB, free: 18.83 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002367/2.675, allocations: 1.294 MB / 0.9108 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/2.675, allocations: 0 / 0.9108 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01273/2.687, allocations: 3.533 MB / 0.9142 GB, free: 14.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (219): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 21 * 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,2 9,1 1,1 1,1 10,1 1,2 4,2 9,1 9,8 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.3826/3.07, allocations: 16.37 MB / 0.9302 GB, free: 185 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04001/3.11, allocations: 9.346 MB / 0.9394 GB, free: 184.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/3.11, allocations: 0.9688 kB / 0.9394 GB, free: 184.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01671/3.127, allocations: 4.301 MB / 0.9436 GB, free: 182.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/3.138, allocations: 1.137 MB / 0.9447 GB, free: 182.3 MB / 0.4948 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]