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.0009139/0.0009188, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001097/0.001097, allocations: 172.7 kB / 15.95 MB, free: 208 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.573/1.573, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.3811/0.3811, allocations: 40 MB / 310.4 MB, free: 10.14 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.0006381/0.0006384, allocations: 12 kB / 378.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.149, allocations: 57.96 MB / 436.8 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3364/0.4854, allocations: 86.58 MB / 0.5111 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03842/0.5239, allocations: 20.54 MB / 0.5312 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004327/0.5283, allocations: 107.7 kB / 0.5313 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003319/0.5316, allocations: 0.7843 MB / 0.532 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01261/0.5443, allocations: 3.425 MB / 0.5354 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01536/0.5597, allocations: 4.434 MB / 0.5397 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01744/0.5771, allocations: 8.57 MB / 0.5481 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004335/0.5815, allocations: 1.485 MB / 0.5495 GB, free: 4.246 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5647/1.146, allocations: 125.8 MB / 0.6724 GB, free: 72.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07858/1.225, allocations: 55 MB / 0.7261 GB, free: 26.36 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001258/1.226, allocations: 125 kB / 0.7262 GB, free: 26.24 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01634/1.243, allocations: 7.958 MB / 0.734 GB, free: 19.4 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002522/1.245, allocations: 0.9413 MB / 0.7349 GB, free: 18.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001929/1.247, allocations: 0.5296 MB / 0.7354 GB, free: 18.44 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008891/1.256, allocations: 3.815 MB / 0.7391 GB, free: 15.32 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.758e-06/1.256, allocations: 2.312 kB / 0.7391 GB, free: 15.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.837e-06/1.256, allocations: 0 / 0.7391 GB, free: 15.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001103/1.256, allocations: 4 kB / 0.7391 GB, free: 15.32 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.007843/1.264, allocations: 3.018 MB / 0.7421 GB, free: 12.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/1.264, allocations: 8.562 kB / 0.7421 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/1.265, allocations: 309.9 kB / 0.7424 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/1.268, allocations: 1.514 MB / 0.7439 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/1.268, allocations: 216.9 kB / 0.7441 GB, free: 10.9 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002822/1.269, allocations: 191.8 kB / 0.7442 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004739/1.273, allocations: 3.261 MB / 0.7474 GB, free: 8.383 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.689e-05/1.274, allocations: 7.375 kB / 0.7474 GB, free: 8.379 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/1.274, allocations: 86.12 kB / 0.7475 GB, free: 8.359 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002616/1.274, allocations: 253.9 kB / 0.7478 GB, free: 8.145 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004675/1.279, allocations: 3.087 MB / 0.7508 GB, free: 6.094 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.01847/1.297, allocations: 13.86 MB / 0.7643 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003945/1.301, allocations: 2.205 MB / 0.7665 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001792/1.303, allocations: 1.18 MB / 0.7676 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009145/1.312, allocations: 5.631 MB / 0.7731 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/1.312, allocations: 55 kB / 0.7732 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001153/1.313, allocations: 239.8 kB / 0.7734 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=158): time 8.476e-06/1.313, allocations: 0 / 0.7734 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of matching and sorting (n=259): time 0.4592/1.773, allocations: 55.79 MB / 0.8279 GB, free: 15.78 MB / 0.5606 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.4022/2.175, allocations: 46.62 MB / 0.8734 GB, free: 216.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004671/2.18, allocations: 1.844 MB / 0.8752 GB, free: 215.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008504/2.18, allocations: 73.77 kB / 0.8753 GB, free: 215.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009736/2.181, allocations: 1.086 MB / 0.8763 GB, free: 215.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001484/2.183, allocations: 0.8685 MB / 0.8772 GB, free: 214.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006027/2.184, allocations: 55.31 kB / 0.8772 GB, free: 214.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002679/2.184, allocations: 422.4 kB / 0.8776 GB, free: 214.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005365/2.189, allocations: 2.148 MB / 0.8797 GB, free: 213.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005676/2.195, allocations: 2.804 MB / 0.8825 GB, free: 211.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006618/2.202, allocations: 2.606 MB / 0.885 GB, free: 211 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.797e-05/2.202, allocations: 6.188 kB / 0.885 GB, free: 211 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01934/2.221, allocations: 7.462 MB / 0.8923 GB, free: 208.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004677/2.221, allocations: 0.6378 MB / 0.8929 GB, free: 207.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.759e-05/2.222, allocations: 17.09 kB / 0.8929 GB, free: 207.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04252/2.264, allocations: 12.41 MB / 0.9051 GB, free: 206.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/2.266, allocations: 346.2 kB / 0.9054 GB, free: 206 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01611/2.282, allocations: 8.692 MB / 0.9139 GB, free: 197.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003907/2.286, allocations: 264.6 kB / 0.9141 GB, free: 197.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007406/2.287, allocations: 151.9 kB / 0.9143 GB, free: 197.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/2.287, allocations: 4 kB / 0.9143 GB, free: 197.3 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01469/2.301, allocations: 7.043 MB / 0.9212 GB, free: 190.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.213e-05/2.301, allocations: 16 kB / 0.9212 GB, free: 190.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02305/2.324, allocations: 7.962 MB / 0.929 GB, free: 182.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/2.327, allocations: 391.4 kB / 0.9293 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/2.342, allocations: 8.192 MB / 0.9373 GB, free: 173.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003698/2.346, allocations: 267.9 kB / 0.9376 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006785/2.347, allocations: 151.9 kB / 0.9377 GB, free: 173.1 MB / 0.5606 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.002037/2.349, allocations: 0.7736 MB / 0.9385 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008617/2.35, allocations: 248.1 kB / 0.9387 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01491/2.365, allocations: 7.894 MB / 0.9464 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/2.365, allocations: 36 kB / 0.9465 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/2.365, allocations: 0 / 0.9465 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01165/2.376, allocations: 6.943 MB / 0.9532 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02514/2.401, allocations: 13.85 MB / 0.9668 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.402e-05/2.402, allocations: 0 / 0.9668 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009566/2.402, allocations: 191.8 kB / 0.967 GB, free: 143 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04049/2.443, allocations: 11.93 MB / 0.9786 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008571/2.444, allocations: 79.95 kB / 0.9787 GB, free: 131 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01517/2.459, allocations: 8.386 MB / 0.9869 GB, free: 122.6 MB / 0.5606 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.1218/2.581, allocations: 46.56 MB / 1.032 GB, free: 75.56 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0195/2.6, allocations: 10.47 MB / 1.043 GB, free: 65.02 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002226/2.603, allocations: 0.8254 MB / 1.043 GB, free: 64.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008693/2.604, allocations: 44 kB / 1.043 GB, free: 64.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003044/2.607, allocations: 251.6 kB / 1.044 GB, free: 63.88 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004723/2.607, allocations: 202.1 kB / 1.044 GB, free: 63.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003639/2.608, allocations: 107.9 kB / 1.044 GB, free: 63.57 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002168/2.61, allocations: 1.257 MB / 1.045 GB, free: 62.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.01e-07/2.61, allocations: 0 / 1.045 GB, free: 62.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01026/2.62, allocations: 2.902 MB / 1.048 GB, free: 59.61 MB / 0.5606 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.009247/2.629, allocations: 2.073 MB / 1.05 GB, free: 57.83 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02563/2.655, allocations: 9.102 MB / 1.059 GB, free: 48.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/2.655, allocations: 0 / 1.059 GB, free: 48.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009487/2.664, allocations: 3.24 MB / 1.062 GB, free: 45.46 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00606/2.671, allocations: 0.9902 MB / 1.063 GB, free: 44.46 MB / 0.5606 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]