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.00116/0.00116, allocations: 107.4 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.001193/0.001193, allocations: 194.7 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.567/1.567, allocations: 205.1 MB / 222 MB, free: 4.969 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.3847/0.3847, allocations: 39.94 MB / 309.3 MB, free: 9.59 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.002322/0.002322, allocations: 61.94 kB / 376.9 MB, free: 13.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.167, allocations: 56.89 MB / 433.8 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3422/0.5093, allocations: 95.53 MB / 0.5169 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04472/0.5541, allocations: 22.58 MB / 0.539 GB, free: 8.371 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007775/0.5619, allocations: 113.4 kB / 0.5391 GB, free: 8.316 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004874/0.5669, allocations: 0.8279 MB / 0.5399 GB, free: 7.855 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01314/0.5801, allocations: 3.509 MB / 0.5433 GB, free: 5.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01804/0.5981, allocations: 4.909 MB / 0.5481 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01446/0.6126, allocations: 10.55 MB / 0.5584 GB, free: 9.891 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003886/0.6166, allocations: 1.577 MB / 0.56 GB, free: 8.293 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5208/1.137, allocations: 73.33 MB / 0.6316 GB, free: 69.35 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07828/1.216, allocations: 31.95 MB / 0.6628 GB, free: 59.76 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001689/1.217, allocations: 130.9 kB / 0.6629 GB, free: 59.76 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01899/1.236, allocations: 5.958 MB / 0.6687 GB, free: 58.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003046/1.24, allocations: 0.9617 MB / 0.6697 GB, free: 58.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004827/1.244, allocations: 1.371 MB / 0.671 GB, free: 58.66 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01486/1.259, allocations: 5.344 MB / 0.6762 GB, free: 58.2 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/1.259, allocations: 0 / 0.6762 GB, free: 58.2 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.364e-06/1.259, allocations: 0 / 0.6762 GB, free: 58.2 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0002045/1.26, allocations: 0 / 0.6762 GB, free: 58.2 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.01192/1.271, allocations: 3.49 MB / 0.6796 GB, free: 56.39 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/1.272, allocations: 10.97 kB / 0.6796 GB, free: 56.39 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00128/1.273, allocations: 300.8 kB / 0.6799 GB, free: 56.25 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002899/1.276, allocations: 1.57 MB / 0.6815 GB, free: 55.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/1.276, allocations: 216.3 kB / 0.6817 GB, free: 55.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002944/1.276, allocations: 186 kB / 0.6818 GB, free: 55.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005452/1.282, allocations: 3.281 MB / 0.685 GB, free: 54.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.281e-05/1.282, allocations: 7.188 kB / 0.685 GB, free: 54.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002336/1.282, allocations: 84.48 kB / 0.6851 GB, free: 54.23 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002831/1.282, allocations: 252.5 kB / 0.6854 GB, free: 54.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00453/1.287, allocations: 3.098 MB / 0.6884 GB, free: 51.96 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.01857/1.305, allocations: 13.82 MB / 0.7019 GB, free: 39.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003641/1.309, allocations: 2.201 MB / 0.704 GB, free: 38.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/1.311, allocations: 1.184 MB / 0.7052 GB, free: 37.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00773/1.318, allocations: 5.622 MB / 0.7107 GB, free: 32.59 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/1.319, allocations: 55.19 kB / 0.7107 GB, free: 32.54 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00112/1.32, allocations: 227.1 kB / 0.7109 GB, free: 32.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 6.062e-06/1.32, allocations: 0 / 0.7109 GB, free: 32.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.6098/1.929, allocations: 56.29 MB / 0.7659 GB, free: 9.055 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.1435/2.073, allocations: 46.32 MB / 0.8111 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002635/2.076, allocations: 1.858 MB / 0.813 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006135/2.076, allocations: 69.7 kB / 0.813 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007745/2.077, allocations: 1.089 MB / 0.8141 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001014/2.078, allocations: 0.8637 MB / 0.8149 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00115/2.079, allocations: 0.5721 MB / 0.8155 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.173e-05/2.079, allocations: 305.1 kB / 0.8158 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004095/2.083, allocations: 2.184 MB / 0.8179 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004645/2.088, allocations: 2.817 MB / 0.8207 GB, free: 268 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/2.1, allocations: 5.451 MB / 0.826 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.383e-05/2.1, allocations: 4 kB / 0.826 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01694/2.117, allocations: 7.504 MB / 0.8333 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/2.117, allocations: 12 kB / 0.8333 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.629e-05/2.117, allocations: 20 kB / 0.8334 GB, free: 3.102 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2545/2.372, allocations: 12.26 MB / 0.8453 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/2.373, allocations: 351.2 kB / 0.8457 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01627/2.39, allocations: 8.64 MB / 0.8541 GB, free: 238 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003943/2.394, allocations: 257.8 kB / 0.8543 GB, free: 237.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005012/2.394, allocations: 154.6 kB / 0.8545 GB, free: 237.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004776/2.399, allocations: 2.677 MB / 0.8571 GB, free: 236.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003991/2.403, allocations: 2.76 MB / 0.8598 GB, free: 235.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01127/2.414, allocations: 5.336 MB / 0.865 GB, free: 233 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.207e-05/2.414, allocations: 7.312 kB / 0.865 GB, free: 233 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01606/2.43, allocations: 7.23 MB / 0.8721 GB, free: 230.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/2.43, allocations: 17.62 kB / 0.8721 GB, free: 230.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.724e-05/2.43, allocations: 18.59 kB / 0.8721 GB, free: 230.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0282/2.459, allocations: 7.737 MB / 0.8797 GB, free: 229.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/2.461, allocations: 390 kB / 0.88 GB, free: 229.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/2.476, allocations: 8.167 MB / 0.888 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003776/2.48, allocations: 255.1 kB / 0.8883 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004621/2.48, allocations: 147.2 kB / 0.8884 GB, free: 226 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.0008869/2.481, allocations: 332.2 kB / 0.8887 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006712/2.482, allocations: 247 kB / 0.889 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/2.497, allocations: 7.862 MB / 0.8966 GB, free: 222.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-05/2.497, allocations: 35.42 kB / 0.8967 GB, free: 222.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/2.497, allocations: 0 / 0.8967 GB, free: 222.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01284/2.51, allocations: 6.912 MB / 0.9034 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02826/2.538, allocations: 13.79 MB / 0.9169 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.881e-05/2.539, allocations: 4 kB / 0.9169 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009819/2.54, allocations: 183.8 kB / 0.9171 GB, free: 202.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04358/2.583, allocations: 11.83 MB / 0.9286 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001144/2.584, allocations: 84.52 kB / 0.9287 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/2.599, allocations: 8.367 MB / 0.9369 GB, free: 182.4 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.127/2.726, allocations: 46.34 MB / 0.9821 GB, free: 135.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01861/2.745, allocations: 10.44 MB / 0.9923 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/2.747, allocations: 0.8084 MB / 0.9931 GB, free: 124.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008615/2.748, allocations: 48 kB / 0.9931 GB, free: 124.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003278/2.751, allocations: 244.1 kB / 0.9934 GB, free: 124 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004972/2.752, allocations: 194 kB / 0.9936 GB, free: 123.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003126/2.752, allocations: 112 kB / 0.9937 GB, free: 123.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001636/2.754, allocations: 1.277 MB / 0.9949 GB, free: 122.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/2.754, allocations: 0 / 0.9949 GB, free: 122.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01023/2.764, allocations: 2.899 MB / 0.9977 GB, free: 119.7 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.009274/2.773, allocations: 2.099 MB / 0.9998 GB, free: 117.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02616/2.8, allocations: 9.144 MB / 1.009 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/2.8, allocations: 0 / 1.009 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.009588/2.809, allocations: 3.201 MB / 1.012 GB, free: 105.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005262/2.814, allocations: 0.9823 MB / 1.013 GB, free: 104.4 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]