Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.223/2.223, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004371/0.0004372, allocations: 15.98 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3314, allocations: 54.86 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1456/0.477, allocations: 90.98 MB / 460.3 MB, free: 15.51 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4013/0.8784, allocations: 37.84 MB / 498.1 MB, free: 6.359 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003434/0.8819, allocations: 101.3 kB / 498.2 MB, free: 6.359 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004808/0.8867, allocations: 1.227 MB / 499.4 MB, free: 6.355 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02398/0.9107, allocations: 6.478 MB / 0.494 GB, free: 6.277 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02761/0.9384, allocations: 7.474 MB / 0.5013 GB, free: 6.18 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.9488, allocations: 5.368 MB / 0.5066 GB, free: 5.316 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003131/0.9519, allocations: 1.573 MB / 0.5081 GB, free: 4.691 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05987/1.012, allocations: 24.36 MB / 0.5319 GB, free: 5.531 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06068/1.073, allocations: 23.98 MB / 0.5553 GB, free: 15.48 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001056/1.074, allocations: 140 kB / 0.5555 GB, free: 15.34 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03706/1.111, allocations: 12.66 MB / 0.5678 GB, free: 5.047 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00214/1.113, allocations: 0.9043 MB / 0.5687 GB, free: 4.461 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001518/1.115, allocations: 0.6183 MB / 0.5693 GB, free: 4.105 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01848/1.133, allocations: 6.986 MB / 0.5761 GB, free: 14.13 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/1.133, allocations: 0 / 0.5761 GB, free: 14.13 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.133, allocations: 0 / 0.5761 GB, free: 14.13 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001131/1.133, allocations: 0 / 0.5761 GB, free: 14.13 MB / 458.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.01616/1.149, allocations: 4.022 MB / 0.5801 GB, free: 10.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/1.149, allocations: 8.031 kB / 0.5801 GB, free: 10.36 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001345/1.151, allocations: 418.7 kB / 0.5805 GB, free: 10.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009411/1.16, allocations: 0.9872 MB / 0.5814 GB, free: 9.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005006/1.165, allocations: 1.727 MB / 0.5831 GB, free: 7.879 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003634/1.166, allocations: 278.7 kB / 0.5834 GB, free: 7.684 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005812/1.166, allocations: 235.6 kB / 0.5836 GB, free: 7.531 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/1.18, allocations: 4.435 MB / 0.5879 GB, free: 4.152 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.538e-05/1.18, allocations: 9.344 kB / 0.5879 GB, free: 4.148 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004214/1.181, allocations: 102.2 kB / 0.588 GB, free: 4.125 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005284/1.181, allocations: 275.4 kB / 0.5883 GB, free: 3.887 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01498/1.196, allocations: 4.192 MB / 0.5924 GB, free: 0.918 MB / 458.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.03749/1.234, allocations: 18.87 MB / 0.6108 GB, free: 14.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01071/1.244, allocations: 2.769 MB / 0.6135 GB, free: 11.44 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05861/1.303, allocations: 17.2 MB / 0.6303 GB, free: 8.188 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.637e-05/1.303, allocations: 60.56 kB / 0.6304 GB, free: 8.121 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002065/1.305, allocations: 317.8 kB / 0.6307 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=179): time 4.419e-06/1.305, allocations: 0 / 0.6307 GB, free: 7.809 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: 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.61/2.916, allocations: 74.49 MB / 0.7034 GB, free: 176.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.7949/3.711, allocations: 126.8 MB / 0.8273 GB, free: 47.77 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/3.714, allocations: 1.842 MB / 0.8291 GB, free: 45.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007354/3.715, allocations: 77.7 kB / 0.8291 GB, free: 45.81 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007984/3.715, allocations: 1.121 MB / 0.8302 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001211/3.717, allocations: 0.9311 MB / 0.8311 GB, free: 43.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004652/3.717, allocations: 63.94 kB / 0.8312 GB, free: 43.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001686/3.717, allocations: 429 kB / 0.8316 GB, free: 43.27 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008188/3.726, allocations: 2.742 MB / 0.8343 GB, free: 40.52 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008559/3.734, allocations: 3.373 MB / 0.8376 GB, free: 36.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/3.745, allocations: 3.176 MB / 0.8407 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.557e-05/3.745, allocations: 4 kB / 0.8407 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.02923/3.774, allocations: 9.152 MB / 0.8496 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003469/3.775, allocations: 0.6131 MB / 0.8502 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-05/3.775, allocations: 16 kB / 0.8502 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4333/4.208, allocations: 16.3 MB / 0.8662 GB, free: 202.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/4.211, allocations: 367.3 kB / 0.8665 GB, free: 202.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03864/4.25, allocations: 10.91 MB / 0.8772 GB, free: 199.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007927/4.258, allocations: 425.4 kB / 0.8776 GB, free: 199.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/4.259, allocations: 179.7 kB / 0.8777 GB, free: 199.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/4.259, allocations: 7.375 kB / 0.8777 GB, free: 199.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0299/4.289, allocations: 8.597 MB / 0.8861 GB, free: 196.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.914e-05/4.289, allocations: 18.94 kB / 0.8862 GB, free: 196.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05491/4.344, allocations: 8.184 MB / 0.8942 GB, free: 191.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/4.347, allocations: 431.3 kB / 0.8946 GB, free: 191.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03413/4.381, allocations: 9.986 MB / 0.9043 GB, free: 181.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007089/4.388, allocations: 426.1 kB / 0.9047 GB, free: 180.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008381/4.389, allocations: 171.9 kB / 0.9049 GB, free: 180.7 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.003068/4.392, allocations: 0.8736 MB / 0.9057 GB, free: 179.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/4.393, allocations: 257.4 kB / 0.906 GB, free: 179.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04173/4.435, allocations: 17.13 MB / 0.9227 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001471/4.435, allocations: 111.8 kB / 0.9228 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/4.435, allocations: 7.75 kB / 0.9228 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03598/4.471, allocations: 15.36 MB / 0.9378 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08176/4.553, allocations: 28.6 MB / 0.9658 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-05/4.553, allocations: 0 / 0.9658 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/4.555, allocations: 219.7 kB / 0.966 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1287/4.684, allocations: 26.75 MB / 0.9921 GB, free: 91.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008581/4.685, allocations: 99.95 kB / 0.9922 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04241/4.727, allocations: 15.84 MB / 1.008 GB, free: 75.61 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.08205/4.809, allocations: 14.15 MB / 1.021 GB, free: 61.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06352/4.873, allocations: 23.29 MB / 1.044 GB, free: 38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003514/4.876, allocations: 1.108 MB / 1.045 GB, free: 36.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001236/4.878, allocations: 56 kB / 1.045 GB, free: 36.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0074/4.885, allocations: 463.3 kB / 1.046 GB, free: 36.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001035/4.886, allocations: 262.2 kB / 1.046 GB, free: 36.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005081/4.887, allocations: 131.9 kB / 1.046 GB, free: 35.97 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002529/4.889, allocations: 1.27 MB / 1.047 GB, free: 34.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.31e-07/4.889, allocations: 0 / 1.047 GB, free: 34.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01635/4.906, allocations: 4.092 MB / 1.051 GB, free: 30.88 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.3967/5.302, allocations: 22.51 MB / 1.073 GB, free: 199.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05938/5.362, allocations: 12.75 MB / 1.086 GB, free: 195.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/5.362, allocations: 0.5 kB / 1.086 GB, free: 195.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02555/5.387, allocations: 5.924 MB / 1.092 GB, free: 193.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009081/5.397, allocations: 1.015 MB / 1.093 GB, free: 193.3 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]