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.001108/0.001108, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001101/0.001101, allocations: 191.8 kB / 16.25 MB, free: 6.629 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.487/1.487, allocations: 205.1 MB / 222.1 MB, free: 4.734 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.3149/0.3149, allocations: 37.97 MB / 307.4 MB, free: 10.11 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.001397/0.001397, allocations: 74.39 kB / 374.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1201, allocations: 56.47 MB / 431.2 MB, free: 6.973 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2966/0.4168, allocations: 93.26 MB / 0.5122 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0368/0.4536, allocations: 21.74 MB / 0.5334 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005459/0.4593, allocations: 114.8 kB / 0.5335 GB, free: 12.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003449/0.4628, allocations: 0.8331 MB / 0.5343 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01167/0.4745, allocations: 3.483 MB / 0.5377 GB, free: 9.973 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01767/0.4921, allocations: 5.184 MB / 0.5428 GB, free: 6.605 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.012/0.5042, allocations: 6.942 MB / 0.5496 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.5083, allocations: 1.798 MB / 0.5513 GB, free: 1.574 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1526/0.6609, allocations: 74.36 MB / 0.6239 GB, free: 6.887 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3359/0.9968, allocations: 32.08 MB / 0.6553 GB, free: 72.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001303/0.9981, allocations: 245.3 kB / 0.6555 GB, free: 72.46 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01684/1.015, allocations: 6.101 MB / 0.6615 GB, free: 71.46 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003048/1.018, allocations: 1.075 MB / 0.6625 GB, free: 71.46 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005492/1.024, allocations: 1.493 MB / 0.664 GB, free: 71.46 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01288/1.036, allocations: 5.44 MB / 0.6693 GB, free: 71.01 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/1.037, allocations: 3.188 kB / 0.6693 GB, free: 71.01 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.934e-06/1.037, allocations: 0 / 0.6693 GB, free: 71.01 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001029/1.037, allocations: 1.156 kB / 0.6693 GB, free: 71.01 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.009477/1.046, allocations: 3.492 MB / 0.6727 GB, free: 69.47 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/1.046, allocations: 20.52 kB / 0.6727 GB, free: 69.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/1.047, allocations: 305.9 kB / 0.673 GB, free: 69.32 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/1.05, allocations: 1.573 MB / 0.6745 GB, free: 68.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/1.05, allocations: 208.7 kB / 0.6747 GB, free: 68.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002681/1.05, allocations: 190.8 kB / 0.6749 GB, free: 68.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004804/1.055, allocations: 3.276 MB / 0.6781 GB, free: 67.49 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.344e-05/1.055, allocations: 7.281 kB / 0.6781 GB, free: 67.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/1.055, allocations: 84.23 kB / 0.6782 GB, free: 67.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003018/1.056, allocations: 251.7 kB / 0.6785 GB, free: 67.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004404/1.06, allocations: 3.091 MB / 0.6815 GB, free: 66.45 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.01643/1.076, allocations: 13.82 MB / 0.695 GB, free: 54.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003438/1.08, allocations: 2.198 MB / 0.6971 GB, free: 52.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/1.081, allocations: 1.175 MB / 0.6983 GB, free: 52.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007075/1.088, allocations: 5.617 MB / 0.7037 GB, free: 47.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/1.088, allocations: 57.5 kB / 0.7038 GB, free: 47.04 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009616/1.089, allocations: 206.2 kB / 0.704 GB, free: 46.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 3.397e-06/1.089, allocations: 0 / 0.704 GB, free: 46.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5323/1.622, allocations: 56.4 MB / 0.7591 GB, free: 6.652 MB / 0.4981 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1481/1.77, allocations: 46.44 MB / 0.8044 GB, free: 7.789 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002773/1.773, allocations: 1.866 MB / 0.8063 GB, free: 5.883 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007838/1.773, allocations: 69.7 kB / 0.8063 GB, free: 5.809 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007981/1.774, allocations: 1.083 MB / 0.8074 GB, free: 4.719 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001018/1.775, allocations: 0.8705 MB / 0.8082 GB, free: 3.855 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/1.776, allocations: 0.5643 MB / 0.8088 GB, free: 3.285 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001022/1.777, allocations: 305.2 kB / 0.8091 GB, free: 2.984 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004038/1.781, allocations: 2.2 MB / 0.8112 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004653/1.785, allocations: 2.825 MB / 0.814 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/1.797, allocations: 5.475 MB / 0.8193 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.758e-05/1.797, allocations: 4 kB / 0.8193 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01599/1.813, allocations: 7.518 MB / 0.8267 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/1.813, allocations: 12 kB / 0.8267 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.209e-05/1.813, allocations: 24 kB / 0.8267 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04665/1.859, allocations: 12.28 MB / 0.8387 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/1.861, allocations: 348.1 kB / 0.839 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2305/2.092, allocations: 8.645 MB / 0.8475 GB, free: 242.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004149/2.096, allocations: 252.7 kB / 0.8477 GB, free: 242.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004389/2.096, allocations: 153 kB / 0.8479 GB, free: 242.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004522/2.101, allocations: 2.692 MB / 0.8505 GB, free: 242.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00365/2.105, allocations: 2.764 MB / 0.8532 GB, free: 240.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009558/2.114, allocations: 5.345 MB / 0.8584 GB, free: 238.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.913e-05/2.114, allocations: 9.844 kB / 0.8584 GB, free: 238.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01452/2.129, allocations: 7.258 MB / 0.8655 GB, free: 236.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/2.129, allocations: 15.09 kB / 0.8655 GB, free: 236.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.107e-05/2.129, allocations: 18.56 kB / 0.8655 GB, free: 236.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0265/2.155, allocations: 7.749 MB / 0.8731 GB, free: 235 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/2.158, allocations: 399 kB / 0.8735 GB, free: 234.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01821/2.176, allocations: 8.163 MB / 0.8815 GB, free: 231.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00434/2.18, allocations: 262.6 kB / 0.8817 GB, free: 231.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006382/2.181, allocations: 150 kB / 0.8818 GB, free: 231.6 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.001086/2.182, allocations: 341.4 kB / 0.8822 GB, free: 231.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008748/2.183, allocations: 245.4 kB / 0.8824 GB, free: 231.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01909/2.202, allocations: 8.078 MB / 0.8903 GB, free: 228.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.067e-05/2.202, allocations: 32.89 kB / 0.8903 GB, free: 228.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/2.202, allocations: 4.109 kB / 0.8903 GB, free: 228.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01395/2.216, allocations: 7.094 MB / 0.8973 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/2.241, allocations: 13.82 MB / 0.9108 GB, free: 217.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.922e-05/2.241, allocations: 0 / 0.9108 GB, free: 217.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009394/2.242, allocations: 193.5 kB / 0.9109 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04146/2.284, allocations: 11.7 MB / 0.9224 GB, free: 206 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008/2.284, allocations: 83.95 kB / 0.9225 GB, free: 205.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01395/2.298, allocations: 8.361 MB / 0.9306 GB, free: 197.5 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.1256/2.424, allocations: 46.15 MB / 0.9757 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01846/2.442, allocations: 10.69 MB / 0.9861 GB, free: 140.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002179/2.445, allocations: 0.8088 MB / 0.9869 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005391/2.445, allocations: 48 kB / 0.987 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002697/2.448, allocations: 244.7 kB / 0.9872 GB, free: 139.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000463/2.448, allocations: 206 kB / 0.9874 GB, free: 139.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002853/2.449, allocations: 115.9 kB / 0.9875 GB, free: 138.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00145/2.45, allocations: 1.277 MB / 0.9887 GB, free: 137.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/2.45, allocations: 0 / 0.9887 GB, free: 137.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008735/2.459, allocations: 2.904 MB / 0.9916 GB, free: 134.9 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.008027/2.467, allocations: 2.094 MB / 0.9936 GB, free: 132.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02613/2.493, allocations: 10.37 MB / 1.004 GB, free: 122.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/2.493, allocations: 4.062 kB / 1.004 GB, free: 122.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.008638/2.502, allocations: 3.238 MB / 1.007 GB, free: 119.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004836/2.507, allocations: 1.046 MB / 1.008 GB, free: 118.3 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]