Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.001217/0.001218, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001192/0.001193, allocations: 193.8 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3618/0.3618, allocations: 39.93 MB / 309.4 MB, free: 8.988 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.2. 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.001632/0.001632, allocations: 72.45 kB / 377.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1378, allocations: 56.88 MB / 434 MB, free: 3.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3448/0.4826, allocations: 93.25 MB / 0.5149 GB, free: 8.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03516/0.5178, allocations: 21.76 MB / 0.5361 GB, free: 9.789 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006935/0.5249, allocations: 113.3 kB / 0.5362 GB, free: 9.734 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00402/0.5289, allocations: 0.8346 MB / 0.5371 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01244/0.5414, allocations: 3.484 MB / 0.5405 GB, free: 7.121 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01629/0.5577, allocations: 5.189 MB / 0.5455 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.5704, allocations: 6.937 MB / 0.5523 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003804/0.5743, allocations: 1.803 MB / 0.5541 GB, free: 13.92 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.158/0.7323, allocations: 74.36 MB / 0.6267 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4089/1.141, allocations: 32.08 MB / 0.658 GB, free: 67.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001422/1.143, allocations: 247.4 kB / 0.6582 GB, free: 67.65 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0192/1.162, allocations: 6.097 MB / 0.6642 GB, free: 66.65 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003378/1.165, allocations: 1.076 MB / 0.6652 GB, free: 66.65 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00605/1.171, allocations: 1.494 MB / 0.6667 GB, free: 66.65 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01563/1.187, allocations: 5.457 MB / 0.672 GB, free: 66.06 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/1.187, allocations: 0 / 0.672 GB, free: 66.06 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.494e-06/1.187, allocations: 0 / 0.672 GB, free: 66.06 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0002224/1.187, allocations: 0 / 0.672 GB, free: 66.06 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.01206/1.199, allocations: 3.476 MB / 0.6754 GB, free: 64.15 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/1.2, allocations: 13.95 kB / 0.6754 GB, free: 64.14 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/1.201, allocations: 308.6 kB / 0.6757 GB, free: 64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003438/1.204, allocations: 1.575 MB / 0.6773 GB, free: 63.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/1.204, allocations: 214.4 kB / 0.6775 GB, free: 63.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003195/1.205, allocations: 191.7 kB / 0.6777 GB, free: 63.16 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005213/1.21, allocations: 3.274 MB / 0.6809 GB, free: 61.61 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.479e-05/1.21, allocations: 11.12 kB / 0.6809 GB, free: 61.6 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/1.21, allocations: 82.11 kB / 0.6809 GB, free: 61.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002484/1.21, allocations: 253.4 kB / 0.6812 GB, free: 61.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004258/1.215, allocations: 3.095 MB / 0.6842 GB, free: 59.3 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.01676/1.231, allocations: 13.8 MB / 0.6977 GB, free: 47.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00346/1.235, allocations: 2.215 MB / 0.6998 GB, free: 45.76 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/1.236, allocations: 1.176 MB / 0.701 GB, free: 45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00735/1.244, allocations: 5.608 MB / 0.7065 GB, free: 39.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/1.244, allocations: 55.81 kB / 0.7065 GB, free: 39.85 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001163/1.245, allocations: 214 kB / 0.7067 GB, free: 39.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 3.256e-06/1.245, allocations: 4 kB / 0.7067 GB, free: 39.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5365/1.782, allocations: 56.4 MB / 0.7618 GB, free: 15.14 MB / 0.5137 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1424/1.924, allocations: 46.43 MB / 0.8072 GB, free: 284 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002691/1.927, allocations: 1.866 MB / 0.809 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000644/1.927, allocations: 69.7 kB / 0.809 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007585/1.928, allocations: 1.094 MB / 0.8101 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009731/1.929, allocations: 0.8627 MB / 0.8109 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001134/1.93, allocations: 0.5682 MB / 0.8115 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001007/1.93, allocations: 309.1 kB / 0.8118 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004111/1.934, allocations: 2.19 MB / 0.8139 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004691/1.939, allocations: 2.828 MB / 0.8167 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/1.95, allocations: 5.472 MB / 0.822 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.108e-05/1.951, allocations: 4 kB / 0.822 GB, free: 500 kB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01549/1.966, allocations: 7.516 MB / 0.8294 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/1.966, allocations: 12 kB / 0.8294 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.583e-05/1.966, allocations: 20 kB / 0.8294 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2265/2.193, allocations: 12.29 MB / 0.8414 GB, free: 240.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/2.194, allocations: 347.9 kB / 0.8417 GB, free: 240.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/2.21, allocations: 8.646 MB / 0.8502 GB, free: 238 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004093/2.215, allocations: 259.5 kB / 0.8504 GB, free: 238 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005071/2.215, allocations: 149.7 kB / 0.8506 GB, free: 238 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004735/2.22, allocations: 2.689 MB / 0.8532 GB, free: 237 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003781/2.224, allocations: 2.76 MB / 0.8559 GB, free: 235.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009327/2.233, allocations: 5.356 MB / 0.8611 GB, free: 233.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.993e-05/2.233, allocations: 7.281 kB / 0.8611 GB, free: 233.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01512/2.248, allocations: 7.252 MB / 0.8682 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.058e-05/2.248, allocations: 12.34 kB / 0.8682 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.518e-05/2.248, allocations: 18.69 kB / 0.8683 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02715/2.275, allocations: 7.75 MB / 0.8758 GB, free: 229.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/2.278, allocations: 398.9 kB / 0.8762 GB, free: 229.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01786/2.296, allocations: 8.174 MB / 0.8842 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004079/2.3, allocations: 252.9 kB / 0.8844 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006554/2.3, allocations: 148.3 kB / 0.8846 GB, free: 226.1 MB / 0.5762 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.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(15,79), (18,78)} Notification: Performance of prepare postOptimizeDAE: time 0.0009375/2.301, allocations: 331.8 kB / 0.8849 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007413/2.302, allocations: 254.4 kB / 0.8851 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01653/2.319, allocations: 8.075 MB / 0.893 GB, free: 223 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.296e-05/2.319, allocations: 32.81 kB / 0.893 GB, free: 223 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/2.319, allocations: 0 / 0.893 GB, free: 223 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01424/2.333, allocations: 7.092 MB / 0.9 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02527/2.358, allocations: 13.83 MB / 0.9135 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/2.358, allocations: 4 kB / 0.9135 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009273/2.359, allocations: 193.5 kB / 0.9137 GB, free: 208.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0419/2.401, allocations: 11.7 MB / 0.9251 GB, free: 196.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008176/2.402, allocations: 83.95 kB / 0.9252 GB, free: 196.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01447/2.417, allocations: 8.37 MB / 0.9333 GB, free: 188 MB / 0.5762 GB Warning: There are tearing variables with annotation attribute 'tearingSelect = never'. Use -d=tearingdump and -d=tearingdumpV for more information. Error: Jacobian StateSetJac9 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1296/2.546, allocations: 46.16 MB / 0.9784 GB, free: 141.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01909/2.565, allocations: 10.69 MB / 0.9889 GB, free: 130.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002186/2.567, allocations: 0.8091 MB / 0.9896 GB, free: 130 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007527/2.568, allocations: 55.97 kB / 0.9897 GB, free: 129.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002919/2.571, allocations: 246.3 kB / 0.9899 GB, free: 129.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000453/2.572, allocations: 198.1 kB / 0.9901 GB, free: 129.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002941/2.572, allocations: 112 kB / 0.9902 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001513/2.573, allocations: 1.273 MB / 0.9915 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/2.573, allocations: 0 / 0.9915 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009287/2.583, allocations: 2.907 MB / 0.9943 GB, free: 125.4 MB / 0.5762 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 (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(15,77), (19,105)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008459/2.591, allocations: 2.092 MB / 0.9964 GB, free: 123.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02909/2.62, allocations: 10.37 MB / 1.006 GB, free: 113 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/2.62, allocations: 0 / 1.006 GB, free: 113 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.009059/2.63, allocations: 3.236 MB / 1.01 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005394/2.635, allocations: 1.05 MB / 1.011 GB, free: 108.7 MB / 0.5762 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4638:9-4638:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]