Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_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.001134/0.001134, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001184/0.001184, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 242.3 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2025/0.2025, allocations: 44.17 MB / 336.6 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 59.53 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1055, allocations: 60.83 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2894/0.3949, allocations: 90.14 MB / 0.5464 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0318/0.4268, allocations: 21.31 MB / 0.5672 GB, free: 92 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003453/0.4303, allocations: 88.66 kB / 0.5673 GB, free: 56 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003328/0.4337, allocations: 0.9393 MB / 0.5682 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0118/0.4455, allocations: 3.728 MB / 0.5718 GB, free: 11.91 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01431/0.4598, allocations: 5.664 MB / 0.5774 GB, free: 6.254 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009438/0.4693, allocations: 6.902 MB / 0.5841 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003511/0.4728, allocations: 1.807 MB / 0.5859 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1822/0.6551, allocations: 74.81 MB / 0.6589 GB, free: 1.848 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07541/0.7305, allocations: 31.92 MB / 0.6901 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001358/0.732, allocations: 244 kB / 0.6903 GB, free: 1.305 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0166/0.7486, allocations: 6.081 MB / 0.6963 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002497/0.7511, allocations: 1.067 MB / 0.6973 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003722/0.7549, allocations: 1.493 MB / 0.6988 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.7667, allocations: 5.439 MB / 0.7041 GB, free: 3.16 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 9.709e-06/0.7668, allocations: 4 kB / 0.7041 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.194e-06/0.7668, allocations: 0 / 0.7041 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001312/0.7669, allocations: 0 / 0.7041 GB, free: 3.156 MB / 0.5294 GB 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.2482/1.015, allocations: 3.478 MB / 0.7075 GB, free: 206.1 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/1.015, allocations: 11.06 kB / 0.7075 GB, free: 206.1 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008383/1.016, allocations: 341.6 kB / 0.7078 GB, free: 206.1 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001261/1.017, allocations: 309.4 kB / 0.7081 GB, free: 205.9 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003056/1.02, allocations: 1.572 MB / 0.7097 GB, free: 205.3 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/1.021, allocations: 217.7 kB / 0.7099 GB, free: 205.2 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003576/1.021, allocations: 183.9 kB / 0.71 GB, free: 205.1 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006004/1.027, allocations: 3.299 MB / 0.7133 GB, free: 203.8 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.375e-05/1.027, allocations: 8.5 kB / 0.7133 GB, free: 203.8 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002559/1.027, allocations: 83.7 kB / 0.7133 GB, free: 203.8 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003575/1.028, allocations: 248.8 kB / 0.7136 GB, free: 203.7 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005753/1.033, allocations: 3.1 MB / 0.7166 GB, free: 202.7 MB / 0.5294 GB 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.02023/1.054, allocations: 13.89 MB / 0.7302 GB, free: 192.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003758/1.058, allocations: 2.201 MB / 0.7323 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001511/1.059, allocations: 1.178 MB / 0.7335 GB, free: 190.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006911/1.066, allocations: 5.617 MB / 0.739 GB, free: 185.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/1.066, allocations: 52.53 kB / 0.739 GB, free: 185.7 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007495/1.067, allocations: 168.4 kB / 0.7392 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 3.787e-06/1.067, allocations: 3.938 kB / 0.7392 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.4878/1.555, allocations: 56.33 MB / 0.7942 GB, free: 130.8 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.1297/1.684, allocations: 46.45 MB / 0.8395 GB, free: 83.86 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002169/1.687, allocations: 1.862 MB / 0.8414 GB, free: 81.96 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005926/1.687, allocations: 65.7 kB / 0.8414 GB, free: 81.89 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005473/1.688, allocations: 1.103 MB / 0.8425 GB, free: 80.78 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007192/1.688, allocations: 0.8689 MB / 0.8433 GB, free: 79.92 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/1.689, allocations: 0.5682 MB / 0.8439 GB, free: 79.35 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.573e-05/1.69, allocations: 305.1 kB / 0.8442 GB, free: 79.05 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/1.693, allocations: 2.176 MB / 0.8463 GB, free: 76.86 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003836/1.697, allocations: 2.818 MB / 0.8491 GB, free: 73.78 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009795/1.707, allocations: 5.461 MB / 0.8544 GB, free: 68.02 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.739e-05/1.707, allocations: 4 kB / 0.8544 GB, free: 68.02 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01376/1.72, allocations: 7.498 MB / 0.8617 GB, free: 60.46 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/1.721, allocations: 13 kB / 0.8617 GB, free: 60.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/1.721, allocations: 20 kB / 0.8618 GB, free: 60.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04417/1.765, allocations: 12.28 MB / 0.8738 GB, free: 48.17 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/1.766, allocations: 351.4 kB / 0.8741 GB, free: 47.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01573/1.782, allocations: 8.639 MB / 0.8825 GB, free: 39.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003814/1.786, allocations: 199.8 kB / 0.8827 GB, free: 38.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004905/1.786, allocations: 151.9 kB / 0.8829 GB, free: 38.79 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004259/1.791, allocations: 2.676 MB / 0.8855 GB, free: 36.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003713/1.794, allocations: 2.759 MB / 0.8882 GB, free: 33.08 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009247/1.804, allocations: 5.336 MB / 0.8934 GB, free: 27.45 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.383e-05/1.804, allocations: 11.94 kB / 0.8934 GB, free: 27.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01275/1.817, allocations: 7.236 MB / 0.9005 GB, free: 20.14 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/1.817, allocations: 12 kB / 0.9005 GB, free: 20.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/1.817, allocations: 20 kB / 0.9005 GB, free: 20.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02426/1.841, allocations: 7.754 MB / 0.9081 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001866/1.843, allocations: 391.4 kB / 0.9084 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/1.858, allocations: 8.173 MB / 0.9164 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003713/1.861, allocations: 195.7 kB / 0.9166 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004373/1.862, allocations: 147.9 kB / 0.9167 GB, free: 3.402 MB / 0.5294 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.0008202/1.863, allocations: 335.8 kB / 0.9171 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006601/1.863, allocations: 245 kB / 0.9173 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2323/2.096, allocations: 7.848 MB / 0.925 GB, free: 194 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.807e-05/2.096, allocations: 31.62 kB / 0.925 GB, free: 194 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/2.096, allocations: 0 / 0.925 GB, free: 194 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01472/2.11, allocations: 6.917 MB / 0.9317 GB, free: 191.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02595/2.136, allocations: 13.78 MB / 0.9452 GB, free: 186 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/2.136, allocations: 3.906 kB / 0.9452 GB, free: 186 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/2.137, allocations: 185.7 kB / 0.9454 GB, free: 186 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04217/2.179, allocations: 11.71 MB / 0.9568 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006711/2.18, allocations: 85.64 kB / 0.9569 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01386/2.194, allocations: 8.359 MB / 0.9651 GB, free: 171.2 MB / 0.5294 GB Warning: There are tearing variables with annotation attribute '__OpenModelica_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.1223/2.316, allocations: 43.27 MB / 1.007 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.018/2.334, allocations: 10.44 MB / 1.018 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/2.336, allocations: 0.8013 MB / 1.018 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004879/2.337, allocations: 56.06 kB / 1.018 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002446/2.339, allocations: 175.8 kB / 1.019 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004205/2.339, allocations: 198.1 kB / 1.019 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002429/2.34, allocations: 107.9 kB / 1.019 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001334/2.341, allocations: 1.273 MB / 1.02 GB, free: 115 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/2.341, allocations: 0 / 1.02 GB, free: 115 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006327/2.347, allocations: 2.899 MB / 1.023 GB, free: 112.3 MB / 0.5294 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.0225/2.37, allocations: 12.99 MB / 1.036 GB, free: 99.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02659/2.396, allocations: 10.33 MB / 1.046 GB, free: 88.96 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/2.397, allocations: 0 / 1.046 GB, free: 88.96 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008627/2.405, allocations: 3.218 MB / 1.049 GB, free: 85.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004787/2.41, allocations: 1.05 MB / 1.05 GB, free: 84.71 MB / 0.5294 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4689:9-4689:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]