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.0007439/0.0007439, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005197/0.005197, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.59/1.59, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.3687/0.3687, allocations: 40 MB / 310.7 MB, free: 9.543 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.0005573/0.0005576, allocations: 14.97 kB / 379.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1408, allocations: 57.96 MB / 437.4 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.382/0.5228, allocations: 93.81 MB / 0.5188 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04306/0.566, allocations: 22.28 MB / 0.5405 GB, free: 8.672 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005471/0.5715, allocations: 109.8 kB / 0.5406 GB, free: 8.613 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004477/0.576, allocations: 0.8236 MB / 0.5414 GB, free: 8.156 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01631/0.5924, allocations: 3.511 MB / 0.5449 GB, free: 6.059 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01758/0.61, allocations: 4.904 MB / 0.5497 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01501/0.625, allocations: 10.55 MB / 0.56 GB, free: 10.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004024/0.6291, allocations: 1.557 MB / 0.5615 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5059/1.135, allocations: 73.33 MB / 0.6331 GB, free: 70.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06665/1.202, allocations: 31.91 MB / 0.6643 GB, free: 60.68 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001294/1.203, allocations: 124.3 kB / 0.6644 GB, free: 60.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01751/1.221, allocations: 5.938 MB / 0.6702 GB, free: 59.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002486/1.223, allocations: 0.9538 MB / 0.6711 GB, free: 59.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003814/1.227, allocations: 1.378 MB / 0.6725 GB, free: 59.65 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/1.238, allocations: 5.295 MB / 0.6776 GB, free: 59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.238, allocations: 0 / 0.6776 GB, free: 59 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.464e-06/1.238, allocations: 0 / 0.6776 GB, free: 59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.251e-05/1.239, allocations: 0 / 0.6776 GB, free: 59 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.008288/1.247, allocations: 2.98 MB / 0.6805 GB, free: 57.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/1.247, allocations: 15.75 kB / 0.6806 GB, free: 57.26 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/1.248, allocations: 317.5 kB / 0.6809 GB, free: 57.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002457/1.25, allocations: 1.56 MB / 0.6824 GB, free: 56.35 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/1.251, allocations: 219.4 kB / 0.6826 GB, free: 56.28 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002989/1.251, allocations: 186.4 kB / 0.6828 GB, free: 56.28 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004647/1.256, allocations: 3.285 MB / 0.686 GB, free: 55.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.042e-05/1.256, allocations: 5.75 kB / 0.686 GB, free: 55.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002316/1.256, allocations: 83.86 kB / 0.6861 GB, free: 55.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003203/1.256, allocations: 255.3 kB / 0.6863 GB, free: 55.23 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004388/1.261, allocations: 3.103 MB / 0.6893 GB, free: 54.07 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.01626/1.277, allocations: 13.86 MB / 0.7029 GB, free: 41.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003466/1.28, allocations: 2.205 MB / 0.705 GB, free: 40.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/1.282, allocations: 1.186 MB / 0.7062 GB, free: 39.72 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007424/1.289, allocations: 5.63 MB / 0.7117 GB, free: 34.64 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/1.289, allocations: 58.12 kB / 0.7117 GB, free: 34.59 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001048/1.29, allocations: 234.9 kB / 0.712 GB, free: 34.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 6.202e-06/1.291, allocations: 0 / 0.712 GB, free: 34.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5192/1.81, allocations: 55.57 MB / 0.7662 GB, free: 13.01 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.1513/1.961, allocations: 46.69 MB / 0.8118 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003743/1.965, allocations: 1.862 MB / 0.8136 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008278/1.966, allocations: 69.7 kB / 0.8137 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001171/1.967, allocations: 1.084 MB / 0.8148 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00156/1.968, allocations: 0.8671 MB / 0.8156 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007922/1.969, allocations: 231.6 kB / 0.8158 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001136/1.969, allocations: 305.1 kB / 0.8161 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005019/1.974, allocations: 2.18 MB / 0.8183 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006937/1.981, allocations: 2.837 MB / 0.821 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/1.995, allocations: 5.492 MB / 0.8264 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.692e-05/1.995, allocations: 4 kB / 0.8264 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01924/2.014, allocations: 7.551 MB / 0.8338 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007185/2.015, allocations: 0.6469 MB / 0.8344 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.235e-05/2.015, allocations: 16 kB / 0.8344 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2882/2.304, allocations: 12.45 MB / 0.8466 GB, free: 236.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/2.305, allocations: 347.2 kB / 0.8469 GB, free: 236.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01701/2.322, allocations: 8.704 MB / 0.8554 GB, free: 234.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00449/2.327, allocations: 264.5 kB / 0.8556 GB, free: 234.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006441/2.327, allocations: 150.8 kB / 0.8558 GB, free: 234.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/2.327, allocations: 6.828 kB / 0.8558 GB, free: 234.8 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01324/2.341, allocations: 7.062 MB / 0.8627 GB, free: 232.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.233e-05/2.341, allocations: 18.44 kB / 0.8627 GB, free: 232.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02844/2.369, allocations: 7.981 MB / 0.8705 GB, free: 231.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/2.371, allocations: 388.7 kB / 0.8709 GB, free: 231.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/2.391, allocations: 8.209 MB / 0.8789 GB, free: 227.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/2.395, allocations: 270.2 kB / 0.8792 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009264/2.396, allocations: 148.9 kB / 0.8793 GB, free: 227.7 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.002524/2.399, allocations: 0.777 MB / 0.8801 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009441/2.4, allocations: 246.5 kB / 0.8803 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/2.421, allocations: 7.919 MB / 0.888 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.41e-05/2.421, allocations: 34.08 kB / 0.8881 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/2.421, allocations: 3.938 kB / 0.8881 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01524/2.436, allocations: 6.97 MB / 0.8949 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0307/2.467, allocations: 13.85 MB / 0.9084 GB, free: 213.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.249e-05/2.467, allocations: 4 kB / 0.9084 GB, free: 213.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/2.468, allocations: 195.7 kB / 0.9086 GB, free: 213.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04706/2.515, allocations: 11.97 MB / 0.9203 GB, free: 201.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008563/2.516, allocations: 83.95 kB / 0.9203 GB, free: 201.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01527/2.531, allocations: 8.42 MB / 0.9286 GB, free: 193 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.1304/2.662, allocations: 46.68 MB / 0.9742 GB, free: 146 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0189/2.681, allocations: 10.5 MB / 0.9844 GB, free: 135.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001847/2.683, allocations: 0.8133 MB / 0.9852 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007064/2.683, allocations: 48 kB / 0.9853 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003097/2.686, allocations: 255.3 kB / 0.9855 GB, free: 134.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004835/2.687, allocations: 198.1 kB / 0.9857 GB, free: 134.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003225/2.687, allocations: 115.2 kB / 0.9858 GB, free: 134 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00183/2.689, allocations: 1.277 MB / 0.987 GB, free: 132.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.21e-07/2.689, allocations: 0 / 0.987 GB, free: 132.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009472/2.699, allocations: 2.899 MB / 0.9899 GB, free: 130 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 (93): * Single equations (assignments): 87 * 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.008728/2.707, allocations: 2.087 MB / 0.9919 GB, free: 128 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02654/2.734, allocations: 9.173 MB / 1.001 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/2.734, allocations: 256 / 1.001 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.009997/2.744, allocations: 3.242 MB / 1.004 GB, free: 115.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008379/2.753, allocations: 0.9902 MB / 1.005 GB, free: 114.5 MB / 0.5762 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4560:9-4560:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]