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.001186/0.001186, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00136/0.00136, allocations: 177.3 kB / 15.94 MB, free: 228 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.302/1.302, allocations: 205.4 MB / 222.1 MB, free: 5.516 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.2931/0.2931, allocations: 40 MB / 310.4 MB, free: 9.699 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.0005111/0.0005111, allocations: 18.97 kB / 378.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.09917, allocations: 57.95 MB / 436.8 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2243/0.3235, allocations: 67.61 MB / 0.4925 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02674/0.3503, allocations: 20.65 MB / 0.5127 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003311/0.3536, allocations: 102.5 kB / 0.5128 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003088/0.3567, allocations: 0.9172 MB / 0.5137 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008888/0.3656, allocations: 2.694 MB / 0.5163 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0168/0.3825, allocations: 5.426 MB / 0.5216 GB, free: 8.332 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007807/0.3903, allocations: 3.778 MB / 0.5253 GB, free: 6.438 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003212/0.3935, allocations: 1.492 MB / 0.5268 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4012/0.7947, allocations: 123.9 MB / 0.6477 GB, free: 100.4 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07006/0.8648, allocations: 53.33 MB / 0.6998 GB, free: 61.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007963/0.8657, allocations: 120 kB / 0.6999 GB, free: 61.44 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01344/0.8791, allocations: 8.002 MB / 0.7077 GB, free: 54.44 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001505/0.8807, allocations: 0.8563 MB / 0.7086 GB, free: 53.87 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.8821, allocations: 0.5314 MB / 0.7091 GB, free: 53.56 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005838/0.888, allocations: 3.799 MB / 0.7128 GB, free: 50.28 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.888, allocations: 0 / 0.7128 GB, free: 50.28 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.888, allocations: 2.516 kB / 0.7128 GB, free: 50.28 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.758e-05/0.8881, allocations: 0 / 0.7128 GB, free: 50.28 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.00676/0.8949, allocations: 2.997 MB / 0.7157 GB, free: 47.47 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.8949, allocations: 16 kB / 0.7158 GB, free: 47.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00116/0.8961, allocations: 312.8 kB / 0.7161 GB, free: 47.15 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.8989, allocations: 1.506 MB / 0.7175 GB, free: 45.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.8991, allocations: 216.5 kB / 0.7177 GB, free: 45.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003303/0.8994, allocations: 186.7 kB / 0.7179 GB, free: 45.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004494/0.9039, allocations: 3.254 MB / 0.7211 GB, free: 43.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.918e-05/0.904, allocations: 11.75 kB / 0.7211 GB, free: 43.31 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002253/0.9042, allocations: 84.66 kB / 0.7212 GB, free: 43.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002341/0.9045, allocations: 253.5 kB / 0.7214 GB, free: 43.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004394/0.9089, allocations: 3.089 MB / 0.7244 GB, free: 41.02 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.0172/0.9261, allocations: 13.98 MB / 0.7381 GB, free: 28.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003406/0.9296, allocations: 2.205 MB / 0.7402 GB, free: 27.39 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007326/0.9369, allocations: 5.704 MB / 0.7458 GB, free: 22.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.937, allocations: 60.81 kB / 0.7459 GB, free: 22.25 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008033/0.9378, allocations: 233.1 kB / 0.7461 GB, free: 22.04 MB / 494.1 MB Notification: Performance of pre-optimization done (n=160): time 4.85e-06/0.9378, allocations: 0 / 0.7461 GB, free: 22.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=262): time 0.4747/1.412, allocations: 57.02 MB / 0.8018 GB, free: 2.223 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.3823/1.795, allocations: 60.23 MB / 0.8606 GB, free: 200.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/1.797, allocations: 1.843 MB / 0.8624 GB, free: 199.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005947/1.798, allocations: 66.23 kB / 0.8625 GB, free: 199.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005933/1.798, allocations: 1.084 MB / 0.8635 GB, free: 199 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008092/1.799, allocations: 0.8752 MB / 0.8644 GB, free: 198.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/1.799, allocations: 57.12 kB / 0.8644 GB, free: 198.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001467/1.8, allocations: 416.2 kB / 0.8648 GB, free: 197.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003722/1.803, allocations: 2.183 MB / 0.867 GB, free: 197.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004127/1.807, allocations: 2.824 MB / 0.8697 GB, free: 195.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005994/1.813, allocations: 2.63 MB / 0.8723 GB, free: 194.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-05/1.814, allocations: 9.125 kB / 0.8723 GB, free: 194.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=361) (initialization): time 0.01817/1.832, allocations: 7.547 MB / 0.8797 GB, free: 192 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.001652/1.833, allocations: 7.51 MB / 0.887 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.31e-05/1.834, allocations: 18.31 kB / 0.887 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04671/1.88, allocations: 12.41 MB / 0.8991 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/1.882, allocations: 345.6 kB / 0.8995 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01524/1.897, allocations: 8.802 MB / 0.9081 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00358/1.901, allocations: 281 kB / 0.9083 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004382/1.901, allocations: 156 kB / 0.9085 GB, free: 179 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/1.901, allocations: 3.875 kB / 0.9085 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01219/1.913, allocations: 7.12 MB / 0.9154 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.27e-05/1.913, allocations: 20 kB / 0.9154 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02368/1.937, allocations: 8.015 MB / 0.9233 GB, free: 165.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/1.939, allocations: 391.4 kB / 0.9236 GB, free: 165.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/1.953, allocations: 8.304 MB / 0.9318 GB, free: 156.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003575/1.957, allocations: 271.8 kB / 0.932 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004515/1.957, allocations: 147.9 kB / 0.9322 GB, free: 156.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 {16 79,19 78} Notification: Performance of prepare postOptimizeDAE: time 0.001458/1.959, allocations: 0.7749 MB / 0.9329 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005184/1.959, allocations: 253 kB / 0.9332 GB, free: 155.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01397/1.973, allocations: 7.959 MB / 0.9409 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.898e-05/1.973, allocations: 31.98 kB / 0.941 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.973, allocations: 0 / 0.941 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01161/1.985, allocations: 6.999 MB / 0.9478 GB, free: 140.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02285/2.008, allocations: 13.96 MB / 0.9614 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/2.008, allocations: 0 / 0.9614 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008716/2.009, allocations: 187.8 kB / 0.9616 GB, free: 126 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04168/2.05, allocations: 12.02 MB / 0.9733 GB, free: 114 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006159/2.051, allocations: 87.89 kB / 0.9734 GB, free: 113.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/2.065, allocations: 8.508 MB / 0.9817 GB, free: 105.3 MB / 0.545 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.19/2.255, allocations: 57.17 MB / 1.038 GB, free: 47.82 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02008/2.275, allocations: 10.74 MB / 1.048 GB, free: 36.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002351/2.277, allocations: 0.841 MB / 1.049 GB, free: 36.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008416/2.278, allocations: 51.98 kB / 1.049 GB, free: 36.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002993/2.281, allocations: 247.7 kB / 1.049 GB, free: 35.81 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004848/2.281, allocations: 210 kB / 1.049 GB, free: 35.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003487/2.282, allocations: 111.9 kB / 1.049 GB, free: 35.49 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001675/2.283, allocations: 1.233 MB / 1.051 GB, free: 34.24 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/2.283, allocations: 0 / 1.051 GB, free: 34.24 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007853/2.291, allocations: 2.895 MB / 1.054 GB, free: 31.55 MB / 0.545 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 (94): * Single equations (assignments): 88 * 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 78,19 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.007543/2.299, allocations: 2.074 MB / 1.056 GB, free: 29.74 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0231/2.322, allocations: 9.256 MB / 1.065 GB, free: 20.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/2.322, allocations: 0 / 1.065 GB, free: 20.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008771/2.331, allocations: 3.259 MB / 1.068 GB, free: 17.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004548/2.335, allocations: 0.9196 MB / 1.069 GB, free: 16.27 MB / 0.545 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]