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_FixedInitial.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_FixedInitial,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",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.01602/0.01602, allocations: 108.6 kB / 15.06 MB, free: 6.035 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.001875/0.001875, allocations: 184.4 kB / 15.95 MB, free: 5.965 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 1.976/1.976, allocations: 194.6 MB / 211.3 MB, free: 11.06 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.2874/0.2874, allocations: 40.04 MB / 296.5 MB, free: 6.258 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006408/0.0006407, allocations: 12 kB / 361.1 MB, free: 9.531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1244, allocations: 54.87 MB / 416 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.5015/0.6259, allocations: 90.98 MB / 0.4951 GB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.07983/0.7058, allocations: 37.85 MB / 0.5321 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004179/0.71, allocations: 103.2 kB / 0.5322 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005844/0.7159, allocations: 1.23 MB / 0.5334 GB, free: 92 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03077/0.7467, allocations: 6.477 MB / 0.5397 GB, free: 11.51 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03725/0.784, allocations: 7.474 MB / 0.547 GB, free: 6.156 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01391/0.798, allocations: 4.328 MB / 0.5512 GB, free: 3.141 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004246/0.8023, allocations: 1.596 MB / 0.5528 GB, free: 1.527 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07668/0.879, allocations: 24.51 MB / 0.5767 GB, free: 8.996 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0726/0.9517, allocations: 24.11 MB / 0.6003 GB, free: 0.875 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001226/0.953, allocations: 140 kB / 0.6004 GB, free: 0.7383 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04004/0.9931, allocations: 12.68 MB / 0.6128 GB, free: 4.047 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002361/0.9955, allocations: 0.9154 MB / 0.6137 GB, free: 3.129 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001947/0.9975, allocations: 0.6213 MB / 0.6143 GB, free: 2.5 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4061/1.404, allocations: 6.993 MB / 0.6211 GB, free: 62.73 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/1.404, allocations: 2.734 kB / 0.6211 GB, free: 62.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.404, allocations: 0 / 0.6211 GB, free: 62.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001872/1.404, allocations: 0 / 0.6211 GB, free: 62.73 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.01789/1.422, allocations: 4.026 MB / 0.625 GB, free: 60.95 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.422, allocations: 9.438 kB / 0.6251 GB, free: 60.95 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001926/1.424, allocations: 417 kB / 0.6255 GB, free: 60.89 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01078/1.435, allocations: 0.9992 MB / 0.6264 GB, free: 60.72 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006252/1.441, allocations: 1.728 MB / 0.6281 GB, free: 60.29 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000556/1.442, allocations: 286.7 kB / 0.6284 GB, free: 60.22 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001415/1.443, allocations: 243.3 kB / 0.6286 GB, free: 60.22 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01777/1.461, allocations: 4.423 MB / 0.6329 GB, free: 59.75 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001333/1.461, allocations: 22.98 kB / 0.633 GB, free: 59.74 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008416/1.462, allocations: 104.8 kB / 0.6331 GB, free: 59.74 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006263/1.462, allocations: 271 kB / 0.6333 GB, free: 59.73 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01942/1.482, allocations: 4.204 MB / 0.6374 GB, free: 59.7 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.04603/1.528, allocations: 18.85 MB / 0.6558 GB, free: 48.97 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/1.54, allocations: 2.873 MB / 0.6586 GB, free: 48.91 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05548/1.596, allocations: 17.22 MB / 0.6755 GB, free: 37.64 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.616e-05/1.596, allocations: 52.5 kB / 0.6755 GB, free: 37.6 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002206/1.598, allocations: 214 kB / 0.6757 GB, free: 37.48 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 7.253e-06/1.598, allocations: 0 / 0.6757 GB, free: 37.48 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: heater.mediums[1].p 2: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.4909/2.089, allocations: 33.29 MB / 0.7082 GB, free: 10.31 MB / 474.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.003571/2.093, allocations: 1.045 MB / 0.7092 GB, free: 9.348 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004227/2.097, allocations: 1.823 MB / 0.711 GB, free: 7.949 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000877/2.098, allocations: 69.83 kB / 0.7111 GB, free: 7.906 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/2.099, allocations: 1.177 MB / 0.7122 GB, free: 7.148 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001572/2.101, allocations: 0.8253 MB / 0.713 GB, free: 6.438 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000459/2.101, allocations: 57.72 kB / 0.7131 GB, free: 6.422 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002049/2.102, allocations: 415 kB / 0.7135 GB, free: 6.055 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007054/2.109, allocations: 2.014 MB / 0.7155 GB, free: 4.691 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009111/2.118, allocations: 2.591 MB / 0.718 GB, free: 2.578 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01282/2.131, allocations: 2.231 MB / 0.7202 GB, free: 1.129 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.933e-05/2.131, allocations: 4 kB / 0.7202 GB, free: 1.125 MB / 474.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.04249/2.173, allocations: 5.972 MB / 0.726 GB, free: 12.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004022/2.177, allocations: 6.7 MB / 0.7325 GB, free: 5.809 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/2.178, allocations: 16 kB / 0.7326 GB, free: 5.793 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0372/2.215, allocations: 3.619 MB / 0.7361 GB, free: 2.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008638/2.224, allocations: 0.5996 MB / 0.7367 GB, free: 2.113 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02492/2.249, allocations: 7.798 MB / 0.7443 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01148/2.26, allocations: 447 kB / 0.7447 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001527/2.262, allocations: 156.6 kB / 0.7449 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/2.262, allocations: 0 / 0.7449 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03277/2.295, allocations: 5.382 MB / 0.7501 GB, free: 6.953 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.682e-05/2.295, allocations: 23.98 kB / 0.7501 GB, free: 6.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01772/2.312, allocations: 2.292 MB / 0.7524 GB, free: 5.035 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009982/2.322, allocations: 0.6722 MB / 0.753 GB, free: 4.422 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03162/2.354, allocations: 11.05 MB / 0.7638 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/2.365, allocations: 438.8 kB / 0.7643 GB, free: 9.879 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001469/2.367, allocations: 154.4 kB / 0.7644 GB, free: 9.754 MB / 0.5105 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 (282): * Single equations (assignments): 271 * 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 {3 12,2 4,1 1,2 7,1 1,5 16,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.004751/2.371, allocations: 0.8298 MB / 0.7652 GB, free: 9.199 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/2.373, allocations: 245 kB / 0.7654 GB, free: 8.961 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06187/2.435, allocations: 12.46 MB / 0.7776 GB, free: 500 kB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04087/2.476, allocations: 11.07 MB / 0.7884 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/2.476, allocations: 3.938 kB / 0.7884 GB, free: 7.645 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03496/2.511, allocations: 11.18 MB / 0.7993 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05955/2.571, allocations: 19.05 MB / 0.818 GB, free: 9.219 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.406e-05/2.571, allocations: 0 / 0.818 GB, free: 9.219 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004415/2.575, allocations: 441.1 kB / 0.8184 GB, free: 8.805 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03085/2.606, allocations: 5.937 MB / 0.8242 GB, free: 2.844 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009317/2.607, allocations: 99.92 kB / 0.8243 GB, free: 2.746 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3498/2.957, allocations: 10.82 MB / 0.8348 GB, free: 230.6 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.004366/2.961, allocations: 1.818 MB / 0.8366 GB, free: 230.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0417/3.003, allocations: 14.71 MB / 0.851 GB, free: 225.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003319/3.007, allocations: 0.9508 MB / 0.8519 GB, free: 225.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008461/3.007, allocations: 58.77 kB / 0.852 GB, free: 225.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005773/3.013, allocations: 383.9 kB / 0.8523 GB, free: 225.5 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008417/3.014, allocations: 229.5 kB / 0.8525 GB, free: 225.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004172/3.015, allocations: 105.2 kB / 0.8526 GB, free: 225.4 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002978/3.017, allocations: 1.263 MB / 0.8539 GB, free: 224.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.402e-06/3.018, allocations: 0 / 0.8539 GB, free: 224.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01742/3.035, allocations: 3.552 MB / 0.8573 GB, free: 224.7 MB / 0.5573 GB 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.06485/3.1, allocations: 16.72 MB / 0.8737 GB, free: 218.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03888/3.139, allocations: 9.403 MB / 0.8829 GB, free: 212.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/3.139, allocations: 0 / 0.8829 GB, free: 212.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01737/3.156, allocations: 4.271 MB / 0.887 GB, free: 209.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00983/3.166, allocations: 1.029 MB / 0.888 GB, free: 208.4 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]