Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_2_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.2/package.mo): time 0.01565/0.01565, allocations: 107.3 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.2.mo): time 0.001954/0.001954, allocations: 179.3 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.026/2.026, allocations: 194.6 MB / 211.3 MB, free: 11.02 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2763/0.2763, allocations: 40.05 MB / 296.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004861/0.0004861, allocations: 8 kB / 361.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1536, allocations: 54.88 MB / 416 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.5585/0.7122, allocations: 90.98 MB / 0.4951 GB, free: 10.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.08149/0.7937, allocations: 37.86 MB / 0.5321 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00447/0.7983, allocations: 101.6 kB / 0.5322 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006073/0.8044, allocations: 1.222 MB / 0.5334 GB, free: 60 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03926/0.8437, allocations: 6.475 MB / 0.5397 GB, free: 11.5 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04735/0.8911, allocations: 7.478 MB / 0.547 GB, free: 6.137 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01492/0.9061, allocations: 4.246 MB / 0.5512 GB, free: 3.199 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005469/0.9116, allocations: 1.568 MB / 0.5527 GB, free: 1.617 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1038/1.015, allocations: 24.46 MB / 0.5766 GB, free: 9.145 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1031/1.119, allocations: 24.09 MB / 0.6001 GB, free: 1.035 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001885/1.121, allocations: 140 kB / 0.6002 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05906/1.18, allocations: 12.67 MB / 0.6126 GB, free: 4.211 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002406/1.182, allocations: 0.8998 MB / 0.6135 GB, free: 3.309 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002015/1.184, allocations: 0.6135 MB / 0.6141 GB, free: 2.688 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4944/1.679, allocations: 6.982 MB / 0.6209 GB, free: 62.97 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.679, allocations: 2.531 kB / 0.6209 GB, free: 62.97 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.438e-06/1.679, allocations: 0.5 kB / 0.6209 GB, free: 62.97 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002014/1.679, allocations: 0.8438 kB / 0.6209 GB, free: 62.97 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.01921/1.698, allocations: 4.014 MB / 0.6248 GB, free: 61.19 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/1.698, allocations: 9.375 kB / 0.6248 GB, free: 61.19 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002136/1.7, allocations: 420.1 kB / 0.6252 GB, free: 61.13 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01082/1.711, allocations: 0.9915 MB / 0.6262 GB, free: 60.97 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006782/1.718, allocations: 1.719 MB / 0.6279 GB, free: 60.54 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006595/1.719, allocations: 282.3 kB / 0.6282 GB, free: 60.47 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001503/1.72, allocations: 238.4 kB / 0.6284 GB, free: 60.47 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02337/1.744, allocations: 4.418 MB / 0.6327 GB, free: 59.99 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/1.744, allocations: 8.094 kB / 0.6327 GB, free: 59.99 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008457/1.745, allocations: 105.6 kB / 0.6328 GB, free: 59.99 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008552/1.746, allocations: 270.5 kB / 0.6331 GB, free: 59.98 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02553/1.771, allocations: 4.193 MB / 0.6372 GB, free: 59.95 MB / 474.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.0529/1.824, allocations: 18.86 MB / 0.6556 GB, free: 49.1 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01762/1.842, allocations: 2.764 MB / 0.6583 GB, free: 49.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07622/1.918, allocations: 17.21 MB / 0.6751 GB, free: 37.85 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.415e-05/1.918, allocations: 61.66 kB / 0.6751 GB, free: 37.81 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00258/1.921, allocations: 316.8 kB / 0.6754 GB, free: 37.65 MB / 474.7 MB Notification: Performance of pre-optimization done (n=179): time 1.148e-05/1.921, allocations: 0 / 0.6754 GB, free: 37.65 MB / 474.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.247/3.167, allocations: 74.5 MB / 0.7482 GB, free: 4.215 MB / 0.4948 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 1.091/4.259, allocations: 126.8 MB / 0.872 GB, free: 195.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003697/4.263, allocations: 1.85 MB / 0.8738 GB, free: 195.1 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009838/4.264, allocations: 75.83 kB / 0.8739 GB, free: 195 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001103/4.265, allocations: 1.206 MB / 0.875 GB, free: 194.1 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00171/4.267, allocations: 0.9281 MB / 0.8759 GB, free: 193.3 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006016/4.267, allocations: 63.31 kB / 0.876 GB, free: 193.3 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002095/4.267, allocations: 427.5 kB / 0.8764 GB, free: 192.9 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0091/4.277, allocations: 2.741 MB / 0.8791 GB, free: 192 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009845/4.286, allocations: 3.362 MB / 0.8824 GB, free: 190.3 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/4.298, allocations: 3.167 MB / 0.8855 GB, free: 189.2 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-05/4.298, allocations: 11.19 kB / 0.8855 GB, free: 189.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.0443/4.343, allocations: 9.268 MB / 0.8945 GB, free: 185.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002047/4.345, allocations: 7.239 MB / 0.9016 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-05/4.345, allocations: 18.84 kB / 0.9016 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1273/4.472, allocations: 16.32 MB / 0.9175 GB, free: 167.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/4.475, allocations: 370.9 kB / 0.9179 GB, free: 167.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03994/4.515, allocations: 10.91 MB / 0.9286 GB, free: 156.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008368/4.524, allocations: 418.1 kB / 0.9289 GB, free: 155.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001101/4.525, allocations: 179.9 kB / 0.9291 GB, free: 155.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/4.525, allocations: 4 kB / 0.9291 GB, free: 155.8 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02996/4.555, allocations: 8.601 MB / 0.9375 GB, free: 147.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-05/4.555, allocations: 16 kB / 0.9375 GB, free: 147.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05491/4.61, allocations: 9.042 MB / 0.9464 GB, free: 138.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003456/4.614, allocations: 435.2 kB / 0.9468 GB, free: 137.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03492/4.648, allocations: 9.903 MB / 0.9565 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007874/4.656, allocations: 425.9 kB / 0.9569 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009811/4.657, allocations: 171.9 kB / 0.957 GB, free: 127.4 MB / 0.5573 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.002855/4.66, allocations: 0.881 MB / 0.9579 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/4.661, allocations: 252.9 kB / 0.9581 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04301/4.704, allocations: 17.14 MB / 0.9749 GB, free: 109.1 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001518/4.705, allocations: 111.8 kB / 0.975 GB, free: 109 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/4.705, allocations: 2.906 kB / 0.975 GB, free: 109 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04559/4.75, allocations: 15.37 MB / 0.99 GB, free: 93.54 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09381/4.844, allocations: 28.59 MB / 1.018 GB, free: 64.89 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-05/4.844, allocations: 7.938 kB / 1.018 GB, free: 64.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/4.846, allocations: 207.8 kB / 1.018 GB, free: 64.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1284/4.975, allocations: 26.76 MB / 1.044 GB, free: 37.9 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001045/4.976, allocations: 103.8 kB / 1.044 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04331/5.019, allocations: 15.84 MB / 1.06 GB, free: 21.89 MB / 0.5573 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.08239/5.101, allocations: 14.15 MB / 1.074 GB, free: 7.66 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3821/5.484, allocations: 23.36 MB / 1.096 GB, free: 227.7 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004185/5.488, allocations: 1.108 MB / 1.098 GB, free: 227.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001448/5.489, allocations: 55.12 kB / 1.098 GB, free: 227.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008141/5.497, allocations: 460.8 kB / 1.098 GB, free: 227.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001438/5.499, allocations: 258.9 kB / 1.098 GB, free: 227.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007572/5.5, allocations: 131 kB / 1.098 GB, free: 227.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003251/5.503, allocations: 1.277 MB / 1.1 GB, free: 226.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.81e-07/5.503, allocations: 0 / 1.1 GB, free: 226.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01946/5.523, allocations: 4.089 MB / 1.104 GB, free: 226.5 MB / 0.5573 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.07667/5.599, allocations: 22.84 MB / 1.126 GB, free: 217.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05953/5.659, allocations: 12.79 MB / 1.138 GB, free: 206.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/5.659, allocations: 0 / 1.138 GB, free: 206.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02528/5.684, allocations: 5.947 MB / 1.144 GB, free: 201.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009633/5.694, allocations: 1.019 MB / 1.145 GB, free: 200.6 MB / 0.5573 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]