Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007806/0.0007806, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009167/0.0009169, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3123/0.3123, allocations: 38.04 MB / 308.4 MB, free: 10.4 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006408/0.0006409, allocations: 16 kB / 376.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.115, allocations: 57.52 MB / 434 MB, free: 5.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2812/0.3963, allocations: 86.57 MB / 0.5083 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03203/0.4284, allocations: 20.54 MB / 0.5284 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003354/0.4318, allocations: 106.3 kB / 0.5285 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002536/0.4344, allocations: 0.7777 MB / 0.5293 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.4448, allocations: 3.423 MB / 0.5326 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01461/0.4595, allocations: 4.427 MB / 0.5369 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01294/0.4724, allocations: 8.581 MB / 0.5453 GB, free: 7.996 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003895/0.4764, allocations: 1.488 MB / 0.5468 GB, free: 7.039 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4776/0.954, allocations: 125.8 MB / 0.6696 GB, free: 79.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07174/1.026, allocations: 55 MB / 0.7233 GB, free: 33.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009118/1.027, allocations: 124 kB / 0.7234 GB, free: 33.29 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01463/1.041, allocations: 7.949 MB / 0.7312 GB, free: 26.46 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/1.043, allocations: 0.9351 MB / 0.7321 GB, free: 25.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001199/1.044, allocations: 0.5357 MB / 0.7326 GB, free: 25.5 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007129/1.052, allocations: 3.818 MB / 0.7364 GB, free: 22.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/1.052, allocations: 0 / 0.7364 GB, free: 22.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.128e-06/1.052, allocations: 0 / 0.7364 GB, free: 22.38 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.779e-05/1.052, allocations: 0 / 0.7364 GB, free: 22.38 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.006504/1.058, allocations: 3.022 MB / 0.7393 GB, free: 19.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/1.058, allocations: 15.55 kB / 0.7393 GB, free: 19.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008123/1.059, allocations: 306 kB / 0.7396 GB, free: 19.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/1.061, allocations: 1.511 MB / 0.7411 GB, free: 18.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/1.061, allocations: 211.4 kB / 0.7413 GB, free: 17.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/1.062, allocations: 191.5 kB / 0.7415 GB, free: 17.84 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004415/1.066, allocations: 3.27 MB / 0.7447 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.451e-05/1.066, allocations: 10 kB / 0.7447 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000218/1.066, allocations: 83.39 kB / 0.7448 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002577/1.067, allocations: 246.1 kB / 0.745 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00426/1.071, allocations: 3.095 MB / 0.748 GB, free: 13.14 MB / 494.1 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.01505/1.086, allocations: 13.84 MB / 0.7615 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003429/1.089, allocations: 2.201 MB / 0.7637 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/1.091, allocations: 1.184 MB / 0.7648 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008657/1.1, allocations: 5.632 MB / 0.7703 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/1.1, allocations: 53.83 kB / 0.7704 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000873/1.101, allocations: 239.9 kB / 0.7706 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=158): time 3.587e-06/1.101, allocations: 0 / 0.7706 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of matching and sorting (n=259): time 0.4453/1.546, allocations: 55.77 MB / 0.8251 GB, free: 6.812 MB / 0.545 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.3432/1.889, allocations: 46.63 MB / 0.8706 GB, free: 202 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/1.892, allocations: 1.844 MB / 0.8724 GB, free: 201.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005117/1.893, allocations: 66.94 kB / 0.8725 GB, free: 201.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007027/1.893, allocations: 1.097 MB / 0.8736 GB, free: 200.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008046/1.894, allocations: 0.8632 MB / 0.8744 GB, free: 199.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/1.894, allocations: 59.12 kB / 0.8745 GB, free: 199.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001645/1.894, allocations: 419.8 kB / 0.8749 GB, free: 199.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004027/1.899, allocations: 2.149 MB / 0.877 GB, free: 198.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004572/1.903, allocations: 2.804 MB / 0.8797 GB, free: 197.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005256/1.908, allocations: 2.601 MB / 0.8822 GB, free: 196.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.848e-05/1.908, allocations: 6.094 kB / 0.8822 GB, free: 196.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01244/1.921, allocations: 7.463 MB / 0.8895 GB, free: 193.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003756/1.921, allocations: 0.6448 MB / 0.8902 GB, free: 192.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/1.921, allocations: 15.22 kB / 0.8902 GB, free: 192.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03791/1.959, allocations: 12.4 MB / 0.9023 GB, free: 183.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/1.961, allocations: 355.4 kB / 0.9026 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01383/1.975, allocations: 8.687 MB / 0.9111 GB, free: 174.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003438/1.978, allocations: 275.7 kB / 0.9114 GB, free: 174.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004155/1.979, allocations: 151.9 kB / 0.9115 GB, free: 174.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/1.979, allocations: 4.781 kB / 0.9115 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01145/1.99, allocations: 7.031 MB / 0.9184 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.451e-05/1.99, allocations: 24.19 kB / 0.9184 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0212/2.011, allocations: 7.945 MB / 0.9262 GB, free: 159.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002077/2.013, allocations: 399.4 kB / 0.9266 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/2.027, allocations: 8.192 MB / 0.9346 GB, free: 150.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003289/2.03, allocations: 267.8 kB / 0.9348 GB, free: 150.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003163/2.03, allocations: 147.9 kB / 0.935 GB, free: 150.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 169 * 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 {15 79,18 78} Notification: Performance of prepare postOptimizeDAE: time 0.001382/2.032, allocations: 0.7773 MB / 0.9357 GB, free: 149.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004497/2.032, allocations: 248.8 kB / 0.9359 GB, free: 149.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/2.045, allocations: 7.895 MB / 0.9437 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.948e-05/2.045, allocations: 28 kB / 0.9437 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/2.045, allocations: 4 kB / 0.9437 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01042/2.056, allocations: 6.948 MB / 0.9505 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0211/2.077, allocations: 13.83 MB / 0.964 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/2.077, allocations: 6.312 kB / 0.964 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008343/2.078, allocations: 199.7 kB / 0.9642 GB, free: 120.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03768/2.115, allocations: 11.93 MB / 0.9758 GB, free: 108.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007009/2.116, allocations: 87.45 kB / 0.9759 GB, free: 108.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/2.129, allocations: 8.389 MB / 0.9841 GB, free: 99.69 MB / 0.545 GB Error: Jacobian StateSetJac9 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1112/2.24, allocations: 46.56 MB / 1.03 GB, free: 52.67 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01711/2.258, allocations: 10.48 MB / 1.04 GB, free: 42.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/2.259, allocations: 0.8098 MB / 1.041 GB, free: 41.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005339/2.26, allocations: 52 kB / 1.041 GB, free: 41.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002451/2.262, allocations: 255.7 kB / 1.041 GB, free: 40.97 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/2.263, allocations: 198 kB / 1.041 GB, free: 40.77 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002858/2.263, allocations: 115.9 kB / 1.041 GB, free: 40.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001524/2.265, allocations: 1.249 MB / 1.042 GB, free: 39.39 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/2.265, allocations: 4 kB / 1.042 GB, free: 39.39 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009457/2.274, allocations: 2.89 MB / 1.045 GB, free: 36.66 MB / 0.545 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: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 77,19 105} Notification: Performance of Backend phase and start with SimCode phase: time 0.0087/2.283, allocations: 2.066 MB / 1.047 GB, free: 34.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02216/2.305, allocations: 9.109 MB / 1.056 GB, free: 25.55 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/2.305, allocations: 3.938 kB / 1.056 GB, free: 25.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007929/2.313, allocations: 3.231 MB / 1.059 GB, free: 22.31 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004874/2.318, allocations: 1 MB / 1.06 GB, free: 21.3 MB / 0.545 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]