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.001098/0.001098, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002003/0.002003, allocations: 195.9 kB / 16.14 MB, free: 6.703 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.433/1.433, allocations: 205.1 MB / 222 MB, free: 4.746 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.3117/0.3117, allocations: 37.98 MB / 307.3 MB, free: 10.05 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.001358/0.001358, allocations: 62.41 kB / 374.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1288, allocations: 56.48 MB / 431 MB, free: 7.066 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3159/0.4447, allocations: 95.53 MB / 0.5142 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03708/0.4819, allocations: 22.58 MB / 0.5363 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004047/0.486, allocations: 118.3 kB / 0.5364 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003089/0.4891, allocations: 0.8179 MB / 0.5372 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01035/0.4995, allocations: 3.509 MB / 0.5406 GB, free: 8.508 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01449/0.514, allocations: 4.906 MB / 0.5454 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01343/0.5274, allocations: 10.56 MB / 0.5557 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004136/0.5316, allocations: 1.571 MB / 0.5572 GB, free: 12.32 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1736/0.7053, allocations: 73.34 MB / 0.6289 GB, free: 2.129 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.358/1.063, allocations: 31.94 MB / 0.6601 GB, free: 65.45 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001436/1.065, allocations: 130.6 kB / 0.6602 GB, free: 65.45 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01996/1.085, allocations: 5.947 MB / 0.666 GB, free: 64.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002909/1.088, allocations: 0.9677 MB / 0.6669 GB, free: 64.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00377/1.092, allocations: 1.374 MB / 0.6683 GB, free: 64.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01346/1.105, allocations: 5.337 MB / 0.6735 GB, free: 64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/1.105, allocations: 0 / 0.6735 GB, free: 64 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.623e-06/1.105, allocations: 0 / 0.6735 GB, free: 64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001093/1.105, allocations: 1.344 kB / 0.6735 GB, free: 64 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.01155/1.117, allocations: 3.492 MB / 0.6769 GB, free: 62.63 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.764e-05/1.117, allocations: 13.25 kB / 0.6769 GB, free: 62.63 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/1.118, allocations: 307.2 kB / 0.6772 GB, free: 62.49 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00284/1.121, allocations: 1.568 MB / 0.6787 GB, free: 61.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/1.121, allocations: 216.8 kB / 0.6789 GB, free: 61.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000307/1.121, allocations: 194.9 kB / 0.6791 GB, free: 61.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005527/1.127, allocations: 3.273 MB / 0.6823 GB, free: 60.81 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.405e-05/1.127, allocations: 3.094 kB / 0.6823 GB, free: 60.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002351/1.127, allocations: 82.03 kB / 0.6824 GB, free: 60.81 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003009/1.128, allocations: 253.1 kB / 0.6826 GB, free: 60.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004638/1.132, allocations: 3.096 MB / 0.6857 GB, free: 59.8 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.01716/1.149, allocations: 13.82 MB / 0.6992 GB, free: 47.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003819/1.153, allocations: 2.2 MB / 0.7013 GB, free: 46.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001645/1.155, allocations: 1.181 MB / 0.7025 GB, free: 45.51 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007848/1.163, allocations: 5.617 MB / 0.7079 GB, free: 40.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/1.163, allocations: 61.25 kB / 0.708 GB, free: 40.4 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001127/1.164, allocations: 227.3 kB / 0.7082 GB, free: 40.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 4.498e-06/1.164, allocations: 0 / 0.7082 GB, free: 40.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5538/1.718, allocations: 56.3 MB / 0.7632 GB, free: 1.211 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.1407/1.859, allocations: 46.3 MB / 0.8084 GB, free: 2.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/1.861, allocations: 1.858 MB / 0.8102 GB, free: 0.6016 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007185/1.862, allocations: 73.7 kB / 0.8103 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008289/1.863, allocations: 1.084 MB / 0.8114 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001006/1.864, allocations: 0.8709 MB / 0.8122 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001076/1.865, allocations: 0.5682 MB / 0.8128 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.95e-05/1.865, allocations: 305.1 kB / 0.8131 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004079/1.869, allocations: 2.182 MB / 0.8152 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004619/1.874, allocations: 2.82 MB / 0.8179 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/1.885, allocations: 5.452 MB / 0.8233 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.152e-05/1.885, allocations: 7.938 kB / 0.8233 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01586/1.901, allocations: 7.503 MB / 0.8306 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/1.901, allocations: 16 kB / 0.8306 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.364e-05/1.901, allocations: 16 kB / 0.8306 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2502/2.151, allocations: 12.26 MB / 0.8426 GB, free: 242.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/2.153, allocations: 345.6 kB / 0.8429 GB, free: 242.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01664/2.17, allocations: 8.641 MB / 0.8514 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/2.174, allocations: 256.2 kB / 0.8516 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007733/2.175, allocations: 156.6 kB / 0.8518 GB, free: 240.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005212/2.18, allocations: 2.676 MB / 0.8544 GB, free: 239.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004196/2.184, allocations: 2.756 MB / 0.8571 GB, free: 237.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01029/2.195, allocations: 5.333 MB / 0.8623 GB, free: 235.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.775e-05/2.195, allocations: 5.75 kB / 0.8623 GB, free: 235.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01425/2.209, allocations: 7.237 MB / 0.8694 GB, free: 233.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/2.209, allocations: 14.34 kB / 0.8694 GB, free: 233.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/2.209, allocations: 18.91 kB / 0.8694 GB, free: 233.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02667/2.236, allocations: 7.74 MB / 0.8769 GB, free: 232 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002484/2.238, allocations: 392.1 kB / 0.8773 GB, free: 231.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01874/2.257, allocations: 8.161 MB / 0.8853 GB, free: 228.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004265/2.261, allocations: 262 kB / 0.8855 GB, free: 228.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007723/2.262, allocations: 146.8 kB / 0.8857 GB, free: 228.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.0009899/2.263, allocations: 334.3 kB / 0.886 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008661/2.264, allocations: 249.4 kB / 0.8862 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01656/2.281, allocations: 7.852 MB / 0.8939 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-05/2.281, allocations: 28.92 kB / 0.8939 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/2.281, allocations: 4.609 kB / 0.8939 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01273/2.293, allocations: 6.915 MB / 0.9007 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02526/2.319, allocations: 13.79 MB / 0.9142 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/2.319, allocations: 0.6875 kB / 0.9142 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/2.32, allocations: 189.6 kB / 0.9143 GB, free: 212.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0425/2.362, allocations: 11.83 MB / 0.9259 GB, free: 201.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007317/2.363, allocations: 83.95 kB / 0.926 GB, free: 201.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01446/2.378, allocations: 8.358 MB / 0.9341 GB, free: 192.9 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.1252/2.503, allocations: 46.34 MB / 0.9794 GB, free: 146.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01941/2.522, allocations: 10.45 MB / 0.9896 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/2.524, allocations: 0.8035 MB / 0.9904 GB, free: 134.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006141/2.525, allocations: 48 kB / 0.9904 GB, free: 134.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/2.528, allocations: 243.3 kB / 0.9906 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000497/2.529, allocations: 206.2 kB / 0.9908 GB, free: 134.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000302/2.529, allocations: 108 kB / 0.9909 GB, free: 134.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001622/2.53, allocations: 1.277 MB / 0.9922 GB, free: 132.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/2.531, allocations: 4 kB / 0.9922 GB, free: 132.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008567/2.539, allocations: 2.9 MB / 0.995 GB, free: 130.2 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.00868/2.548, allocations: 2.095 MB / 0.9971 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02578/2.574, allocations: 9.145 MB / 1.006 GB, free: 119 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/2.574, allocations: 0.9375 kB / 1.006 GB, free: 119 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.009517/2.583, allocations: 3.187 MB / 1.009 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005106/2.588, allocations: 0.9902 MB / 1.01 GB, free: 114.8 MB / 0.5762 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4614:9-4614:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:774:5-774:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]