Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.165/2.165, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005051/0.0005054, allocations: 8 kB / 282.6 MB, free: 9.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3482, allocations: 48.71 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1558/0.504, allocations: 90.26 MB / 421.5 MB, free: 4.066 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.07808/0.5822, allocations: 37.6 MB / 459.1 MB, free: 14.38 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003779/0.586, allocations: 95.19 kB / 459.2 MB, free: 14.29 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005598/0.5916, allocations: 1.229 MB / 460.5 MB, free: 13.05 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02844/0.6201, allocations: 6.408 MB / 466.9 MB, free: 6.629 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3633/0.9834, allocations: 7.414 MB / 474.3 MB, free: 12.62 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01169/0.9952, allocations: 5.319 MB / 479.6 MB, free: 12.62 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003902/0.9991, allocations: 1.564 MB / 481.2 MB, free: 12.49 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06013/1.059, allocations: 24.09 MB / 0.4934 GB, free: 10.51 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05935/1.119, allocations: 23.73 MB / 0.5166 GB, free: 7.168 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001287/1.12, allocations: 136 kB / 0.5167 GB, free: 7.035 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03817/1.158, allocations: 12.47 MB / 0.5289 GB, free: 14.12 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002543/1.161, allocations: 0.9014 MB / 0.5298 GB, free: 13.54 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002127/1.163, allocations: 0.6185 MB / 0.5304 GB, free: 13.18 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01967/1.183, allocations: 6.915 MB / 0.5371 GB, free: 7.266 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/1.183, allocations: 4 kB / 0.5371 GB, free: 7.262 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.183, allocations: 0 / 0.5371 GB, free: 7.262 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001648/1.183, allocations: 0 / 0.5371 GB, free: 7.262 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.01722/1.2, allocations: 3.959 MB / 0.541 GB, free: 3.562 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/1.2, allocations: 8.031 kB / 0.541 GB, free: 3.555 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001868/1.202, allocations: 420.2 kB / 0.5414 GB, free: 3.293 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00993/1.212, allocations: 0.9539 MB / 0.5424 GB, free: 2.402 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005732/1.218, allocations: 1.72 MB / 0.544 GB, free: 1.109 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005245/1.218, allocations: 279.9 kB / 0.5443 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/1.22, allocations: 241.5 kB / 0.5445 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0167/1.236, allocations: 4.435 MB / 0.5489 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/1.236, allocations: 3 kB / 0.5489 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005803/1.237, allocations: 118.5 kB / 0.549 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005618/1.238, allocations: 267.3 kB / 0.5492 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01704/1.255, allocations: 4.196 MB / 0.5533 GB, free: 10.14 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.04366/1.298, allocations: 18.84 MB / 0.5717 GB, free: 8.953 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/1.31, allocations: 2.767 MB / 0.5744 GB, free: 7.027 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06295/1.373, allocations: 17.22 MB / 0.5913 GB, free: 4.098 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.269e-05/1.373, allocations: 56.97 kB / 0.5913 GB, free: 4.051 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00222/1.375, allocations: 323 kB / 0.5916 GB, free: 3.762 MB / 474.7 MB Notification: Performance of pre-optimization done (n=179): time 6.542e-06/1.375, allocations: 0 / 0.5916 GB, free: 3.762 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.553/2.928, allocations: 74.49 MB / 0.6644 GB, free: 228.3 MB / 0.5105 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.7356/3.664, allocations: 126.6 MB / 0.788 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003639/3.668, allocations: 1.846 MB / 0.7898 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009086/3.668, allocations: 73.7 kB / 0.7899 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008666/3.669, allocations: 1.121 MB / 0.791 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001561/3.671, allocations: 0.9309 MB / 0.7919 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005225/3.671, allocations: 64.03 kB / 0.7919 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001983/3.672, allocations: 436.9 kB / 0.7924 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008703/3.68, allocations: 2.738 MB / 0.795 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00937/3.69, allocations: 3.377 MB / 0.7983 GB, free: 101 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/3.701, allocations: 3.172 MB / 0.8014 GB, free: 97.76 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.117e-05/3.701, allocations: 4 kB / 0.8014 GB, free: 97.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.03186/3.733, allocations: 9.148 MB / 0.8104 GB, free: 88.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003512/3.734, allocations: 0.6122 MB / 0.811 GB, free: 87.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-05/3.734, allocations: 16 kB / 0.811 GB, free: 87.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1219/3.856, allocations: 16.32 MB / 0.8269 GB, free: 71.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002842/3.859, allocations: 367.4 kB / 0.8273 GB, free: 70.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03887/3.897, allocations: 10.91 MB / 0.8379 GB, free: 60.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008083/3.906, allocations: 427.5 kB / 0.8383 GB, free: 59.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009506/3.907, allocations: 175.9 kB / 0.8385 GB, free: 59.43 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/3.907, allocations: 7.953 kB / 0.8385 GB, free: 59.42 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02954/3.936, allocations: 8.591 MB / 0.8469 GB, free: 50.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.071e-05/3.936, allocations: 20.97 kB / 0.8469 GB, free: 50.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04985/3.986, allocations: 8.181 MB / 0.8549 GB, free: 42.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003376/3.99, allocations: 435.3 kB / 0.8553 GB, free: 42.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03427/4.024, allocations: 9.988 MB / 0.8651 GB, free: 32.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007367/4.031, allocations: 419.6 kB / 0.8655 GB, free: 31.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/4.032, allocations: 167.9 kB / 0.8656 GB, free: 31.52 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.002808/4.035, allocations: 0.8811 MB / 0.8665 GB, free: 30.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009393/4.036, allocations: 260.8 kB / 0.8667 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04199/4.078, allocations: 17.13 MB / 0.8835 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000139/4.078, allocations: 111.8 kB / 0.8836 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/4.078, allocations: 0 / 0.8836 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3181/4.396, allocations: 15.37 MB / 0.8986 GB, free: 225.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08359/4.48, allocations: 28.6 MB / 0.9265 GB, free: 213.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.349e-05/4.48, allocations: 3.844 kB / 0.9265 GB, free: 213.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001883/4.482, allocations: 208.5 kB / 0.9267 GB, free: 213.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1288/4.611, allocations: 26.75 MB / 0.9528 GB, free: 188.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008247/4.612, allocations: 103.9 kB / 0.9529 GB, free: 188.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04211/4.654, allocations: 15.85 MB / 0.9684 GB, free: 172.7 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.0827/4.737, allocations: 14.13 MB / 0.9822 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06389/4.801, allocations: 23.31 MB / 1.005 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003375/4.804, allocations: 1.108 MB / 1.006 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00119/4.805, allocations: 56 kB / 1.006 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007316/4.813, allocations: 456.5 kB / 1.007 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000896/4.814, allocations: 258.2 kB / 1.007 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004843/4.814, allocations: 127.9 kB / 1.007 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002399/4.816, allocations: 1.278 MB / 1.008 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.2e-07/4.816, allocations: 2.078 kB / 1.008 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01578/4.832, allocations: 4.086 MB / 1.012 GB, free: 128.1 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.06656/4.899, allocations: 22.5 MB / 1.034 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05709/4.956, allocations: 12.75 MB / 1.047 GB, free: 93.17 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/4.956, allocations: 1.594 kB / 1.047 GB, free: 93.17 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0244/4.98, allocations: 5.915 MB / 1.052 GB, free: 87.24 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008797/4.989, allocations: 1.02 MB / 1.053 GB, free: 86.23 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]