Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001263, allocations: 202.4 kB / 16.79 MB, free: 6.84 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.272/1.272, allocations: 205.1 MB / 222.6 MB, free: 4.977 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3036/0.3036, allocations: 43.5 MB / 313.5 MB, free: 8.613 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: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 60.42 kB / 382.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1137, allocations: 57.79 MB / 439.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2819/0.3957, allocations: 95.52 MB / 0.5229 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0353/0.431, allocations: 22.59 MB / 0.5449 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004662/0.4358, allocations: 112.9 kB / 0.5451 GB, free: 4.297 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002909/0.4387, allocations: 0.8278 MB / 0.5459 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009247/0.448, allocations: 3.504 MB / 0.5493 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0121/0.4601, allocations: 4.918 MB / 0.5541 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.4707, allocations: 10.56 MB / 0.5644 GB, free: 2.383 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002831/0.4736, allocations: 1.574 MB / 0.5659 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4273/0.9009, allocations: 73.33 MB / 0.6376 GB, free: 60.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0683/0.9692, allocations: 31.94 MB / 0.6687 GB, free: 50.49 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009523/0.9702, allocations: 131.9 kB / 0.6689 GB, free: 50.49 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01265/0.9829, allocations: 5.95 MB / 0.6747 GB, free: 49.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00171/0.9846, allocations: 0.9552 MB / 0.6756 GB, free: 49.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002166/0.9868, allocations: 1.377 MB / 0.677 GB, free: 49.42 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008615/0.9954, allocations: 5.345 MB / 0.6822 GB, free: 47.85 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.9955, allocations: 0 / 0.6822 GB, free: 47.85 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.9955, allocations: 0 / 0.6822 GB, free: 47.85 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.974e-05/0.9956, allocations: 0 / 0.6822 GB, free: 47.85 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.008682/1.004, allocations: 3.483 MB / 0.6856 GB, free: 45.9 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/1.004, allocations: 14.28 kB / 0.6856 GB, free: 45.89 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005942/1.005, allocations: 338.4 kB / 0.6859 GB, free: 45.68 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001135/1.006, allocations: 312.5 kB / 0.6862 GB, free: 45.37 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00235/1.008, allocations: 1.578 MB / 0.6878 GB, free: 44.12 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/1.009, allocations: 225.4 kB / 0.688 GB, free: 43.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/1.009, allocations: 184.7 kB / 0.6881 GB, free: 43.84 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004396/1.013, allocations: 3.283 MB / 0.6914 GB, free: 41.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/1.013, allocations: 3.188 kB / 0.6914 GB, free: 41.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002145/1.014, allocations: 81.14 kB / 0.6914 GB, free: 41.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002378/1.014, allocations: 261.7 kB / 0.6917 GB, free: 41.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004511/1.018, allocations: 3.092 MB / 0.6947 GB, free: 39.13 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.01694/1.035, allocations: 13.84 MB / 0.7082 GB, free: 26.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003401/1.039, allocations: 2.199 MB / 0.7104 GB, free: 25.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001462/1.04, allocations: 1.18 MB / 0.7115 GB, free: 24.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006864/1.047, allocations: 5.622 MB / 0.717 GB, free: 19.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/1.047, allocations: 47.81 kB / 0.7171 GB, free: 19.7 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008842/1.048, allocations: 240.3 kB / 0.7173 GB, free: 19.49 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 5.3e-06/1.048, allocations: 4 kB / 0.7173 GB, free: 19.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5534/1.601, allocations: 56.29 MB / 0.7723 GB, free: 11.46 MB / 0.5294 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1453/1.747, allocations: 46.3 MB / 0.8175 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/1.75, allocations: 1.862 MB / 0.8193 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006619/1.751, allocations: 69.7 kB / 0.8194 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008661/1.751, allocations: 1.094 MB / 0.8204 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00121/1.753, allocations: 0.867 MB / 0.8213 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001508/1.754, allocations: 0.5643 MB / 0.8218 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.114e-05/1.754, allocations: 305.1 kB / 0.8221 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00425/1.759, allocations: 2.18 MB / 0.8242 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004807/1.763, allocations: 2.825 MB / 0.827 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/1.775, allocations: 5.459 MB / 0.8323 GB, free: 13 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.566e-05/1.775, allocations: 4 kB / 0.8323 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01571/1.791, allocations: 7.501 MB / 0.8397 GB, free: 5.547 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/1.791, allocations: 12 kB / 0.8397 GB, free: 5.535 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.535e-05/1.791, allocations: 20 kB / 0.8397 GB, free: 5.516 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.228/2.019, allocations: 12.25 MB / 0.8517 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/2.02, allocations: 346.6 kB / 0.852 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/2.036, allocations: 8.652 MB / 0.8604 GB, free: 251.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003767/2.04, allocations: 258.5 kB / 0.8607 GB, free: 251.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004328/2.04, allocations: 149.4 kB / 0.8608 GB, free: 251.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004407/2.045, allocations: 2.683 MB / 0.8635 GB, free: 250.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003875/2.049, allocations: 2.751 MB / 0.8661 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01082/2.06, allocations: 5.332 MB / 0.8713 GB, free: 246.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.707e-05/2.06, allocations: 5.781 kB / 0.8714 GB, free: 246.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01516/2.075, allocations: 7.234 MB / 0.8784 GB, free: 244 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/2.075, allocations: 20.95 kB / 0.8784 GB, free: 244 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.354e-05/2.075, allocations: 18.62 kB / 0.8785 GB, free: 244 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0268/2.102, allocations: 7.733 MB / 0.886 GB, free: 242.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002105/2.104, allocations: 391.6 kB / 0.8864 GB, free: 242.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01574/2.12, allocations: 8.163 MB / 0.8943 GB, free: 239.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003845/2.123, allocations: 262 kB / 0.8946 GB, free: 239.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006074/2.124, allocations: 146.3 kB / 0.8947 GB, free: 239.4 MB / 0.5919 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.001017/2.125, allocations: 336.2 kB / 0.8951 GB, free: 239.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008524/2.126, allocations: 252.3 kB / 0.8953 GB, free: 239.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01489/2.141, allocations: 7.863 MB / 0.903 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.273e-05/2.141, allocations: 34.44 kB / 0.903 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/2.141, allocations: 2.406 kB / 0.903 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01165/2.153, allocations: 6.91 MB / 0.9098 GB, free: 230.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02454/2.177, allocations: 13.8 MB / 0.9232 GB, free: 217 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/2.177, allocations: 0 / 0.9232 GB, free: 217 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008709/2.178, allocations: 191.8 kB / 0.9234 GB, free: 216.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04208/2.22, allocations: 11.82 MB / 0.935 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007906/2.221, allocations: 83.97 kB / 0.935 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01606/2.237, allocations: 8.363 MB / 0.9432 GB, free: 196.6 MB / 0.5919 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.1282/2.365, allocations: 46.33 MB / 0.9885 GB, free: 149.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0194/2.385, allocations: 10.44 MB / 0.9987 GB, free: 139.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/2.387, allocations: 0.8051 MB / 0.9994 GB, free: 138.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009842/2.388, allocations: 52 kB / 0.9995 GB, free: 138.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003474/2.392, allocations: 239.9 kB / 0.9997 GB, free: 138.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005913/2.392, allocations: 202 kB / 0.9999 GB, free: 138 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003774/2.393, allocations: 107.9 kB / 1 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00254/2.395, allocations: 1.277 MB / 1.001 GB, free: 136.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6.82e-07/2.395, allocations: 0 / 1.001 GB, free: 136.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009654/2.405, allocations: 2.902 MB / 1.004 GB, free: 133.9 MB / 0.5919 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.02731/2.432, allocations: 13 MB / 1.017 GB, free: 120.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02446/2.457, allocations: 9.145 MB / 1.026 GB, free: 111.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/2.457, allocations: 0 / 1.026 GB, free: 111.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.009113/2.466, allocations: 3.189 MB / 1.029 GB, free: 108.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005744/2.472, allocations: 0.9958 MB / 1.03 GB, free: 107.6 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4614:9-4614:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/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]