Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001734/0.00174, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002001/0.002001, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2286/0.2286, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003066/0.003067, allocations: 79.86 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3751, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1113/0.4864, allocations: 90.46 MB / 0.619 GB, free: 6.984 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03563/0.5221, allocations: 21.34 MB / 0.6398 GB, free: 1.586 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00332/0.5255, allocations: 91.44 kB / 0.6399 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003468/0.529, allocations: 0.9395 MB / 0.6408 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01094/0.54, allocations: 3.743 MB / 0.6445 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01439/0.5544, allocations: 5.675 MB / 0.65 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01038/0.5648, allocations: 6.921 MB / 0.6568 GB, free: 180 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003703/0.5686, allocations: 1.825 MB / 0.6586 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.5217/1.09, allocations: 74.9 MB / 0.7317 GB, free: 59.22 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06805/1.158, allocations: 31.93 MB / 0.7629 GB, free: 49.51 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001188/1.16, allocations: 244.3 kB / 0.7631 GB, free: 49.51 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0153/1.175, allocations: 6.126 MB / 0.7691 GB, free: 48.5 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002497/1.177, allocations: 1.075 MB / 0.7701 GB, free: 48.5 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003019/1.181, allocations: 1.487 MB / 0.7716 GB, free: 48.45 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01076/1.191, allocations: 5.534 MB / 0.777 GB, free: 44.81 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/1.191, allocations: 0 / 0.777 GB, free: 44.81 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.043e-06/1.191, allocations: 0 / 0.777 GB, free: 44.81 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001199/1.191, allocations: 0 / 0.777 GB, free: 44.81 MB / 0.5606 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.009839/1.201, allocations: 3.587 MB / 0.7805 GB, free: 41.6 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/1.201, allocations: 12.03 kB / 0.7805 GB, free: 41.59 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006172/1.202, allocations: 341.9 kB / 0.7808 GB, free: 41.37 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/1.203, allocations: 325.8 kB / 0.7812 GB, free: 41.05 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/1.206, allocations: 1.677 MB / 0.7828 GB, free: 39.71 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/1.206, allocations: 216.1 kB / 0.783 GB, free: 39.55 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003836/1.207, allocations: 193.2 kB / 0.7832 GB, free: 39.43 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005491/1.212, allocations: 3.29 MB / 0.7864 GB, free: 37.01 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.374e-05/1.212, allocations: 3.562 kB / 0.7864 GB, free: 37.01 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003503/1.212, allocations: 85.94 kB / 0.7865 GB, free: 36.98 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002734/1.213, allocations: 251.1 kB / 0.7867 GB, free: 36.77 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005605/1.218, allocations: 3.095 MB / 0.7897 GB, free: 34.71 MB / 0.5606 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.01789/1.236, allocations: 13.87 MB / 0.8033 GB, free: 22.51 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003869/1.24, allocations: 2.204 MB / 0.8054 GB, free: 21.12 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001783/1.242, allocations: 1.185 MB / 0.8066 GB, free: 20.37 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007481/1.25, allocations: 5.623 MB / 0.8121 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/1.25, allocations: 51.88 kB / 0.8121 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007279/1.25, allocations: 162.5 kB / 0.8123 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 4.398e-06/1.25, allocations: 0 / 0.8123 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.5102/1.761, allocations: 55.36 MB / 0.8664 GB, free: 7.023 MB / 0.6075 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1437/1.904, allocations: 45.55 MB / 0.9108 GB, free: 9.09 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002732/1.907, allocations: 1.862 MB / 0.9127 GB, free: 7.188 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0005891/1.908, allocations: 65.7 kB / 0.9127 GB, free: 7.117 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009138/1.909, allocations: 1.121 MB / 0.9138 GB, free: 5.992 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001076/1.91, allocations: 0.914 MB / 0.9147 GB, free: 5.094 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/1.911, allocations: 0.5683 MB / 0.9153 GB, free: 4.52 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001192/1.911, allocations: 305.1 kB / 0.9156 GB, free: 4.219 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004393/1.915, allocations: 2.184 MB / 0.9177 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005184/1.921, allocations: 2.81 MB / 0.9204 GB, free: 14.97 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/1.933, allocations: 5.418 MB / 0.9257 GB, free: 9.332 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.37e-05/1.934, allocations: 8 kB / 0.9257 GB, free: 9.324 MB / 0.67 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01865/1.952, allocations: 7.486 MB / 0.933 GB, free: 1.891 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/1.952, allocations: 12 kB / 0.9331 GB, free: 1.879 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.002e-05/1.952, allocations: 20 kB / 0.9331 GB, free: 1.859 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04701/1.999, allocations: 11.83 MB / 0.9446 GB, free: 6.051 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/2.001, allocations: 351.6 kB / 0.945 GB, free: 5.73 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/2.021, allocations: 8.64 MB / 0.9534 GB, free: 13.05 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/2.025, allocations: 187.8 kB / 0.9536 GB, free: 12.87 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006324/2.025, allocations: 155.9 kB / 0.9537 GB, free: 12.71 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005644/2.031, allocations: 2.687 MB / 0.9563 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005136/2.036, allocations: 2.756 MB / 0.959 GB, free: 7.008 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.012/2.048, allocations: 5.286 MB / 0.9642 GB, free: 1.504 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.17e-05/2.048, allocations: 4 kB / 0.9642 GB, free: 1.5 MB / 0.7012 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01694/2.065, allocations: 7.233 MB / 0.9713 GB, free: 10.33 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.281e-05/2.065, allocations: 12 kB / 0.9713 GB, free: 10.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.452e-05/2.065, allocations: 24.78 kB / 0.9713 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02704/2.092, allocations: 7.668 MB / 0.9788 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001957/2.094, allocations: 391.4 kB / 0.9792 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2819/2.376, allocations: 8.153 MB / 0.9871 GB, free: 319.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003611/2.38, allocations: 190.2 kB / 0.9873 GB, free: 319.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006947/2.381, allocations: 151.9 kB / 0.9875 GB, free: 319.7 MB / 0.7169 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.0008954/2.381, allocations: 339.7 kB / 0.9878 GB, free: 319.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008789/2.382, allocations: 261.1 kB / 0.988 GB, free: 319.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01676/2.399, allocations: 7.816 MB / 0.9957 GB, free: 316.7 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.552e-05/2.399, allocations: 31.36 kB / 0.9957 GB, free: 316.7 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.433e-06/2.399, allocations: 3.562 kB / 0.9957 GB, free: 316.7 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01315/2.412, allocations: 6.895 MB / 1.002 GB, free: 314.1 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02491/2.437, allocations: 13.75 MB / 1.016 GB, free: 306.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.402e-05/2.437, allocations: 3.938 kB / 1.016 GB, free: 306.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009479/2.438, allocations: 196.6 kB / 1.016 GB, free: 306.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03923/2.478, allocations: 11.25 MB / 1.027 GB, free: 296.2 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006986/2.478, allocations: 83.95 kB / 1.027 GB, free: 296.1 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01404/2.492, allocations: 8.346 MB / 1.035 GB, free: 287.9 MB / 0.7169 GB Warning: There are tearing variables with annotation attribute '__OpenModelica_tearingSelect = 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.1174/2.61, allocations: 42.27 MB / 1.077 GB, free: 245.7 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01884/2.629, allocations: 10.44 MB / 1.087 GB, free: 235.2 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002178/2.631, allocations: 0.8185 MB / 1.088 GB, free: 234.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007471/2.632, allocations: 52 kB / 1.088 GB, free: 234.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002835/2.634, allocations: 171.9 kB / 1.088 GB, free: 234.2 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005443/2.635, allocations: 206 kB / 1.088 GB, free: 234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000305/2.635, allocations: 104 kB / 1.088 GB, free: 233.9 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001648/2.637, allocations: 1.277 MB / 1.089 GB, free: 232.6 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.01e-07/2.637, allocations: 0 / 1.089 GB, free: 232.6 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0082/2.645, allocations: 2.929 MB / 1.092 GB, free: 229.9 MB / 0.7169 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.02616/2.671, allocations: 13.03 MB / 1.105 GB, free: 217.1 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.02514/2.697, allocations: 9.22 MB / 1.114 GB, free: 207.8 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/2.697, allocations: 0 / 1.114 GB, free: 207.8 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.009353/2.706, allocations: 3.225 MB / 1.117 GB, free: 204.6 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007045/2.713, allocations: 1.05 MB / 1.118 GB, free: 203.6 MB / 0.7169 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]