Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_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.0008088/0.0008088, allocations: 93.16 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00093/0.00093, allocations: 199.4 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.153/1.153, allocations: 227.7 MB / 246.8 MB, free: 11.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1656/0.1656, allocations: 46.18 MB / 345.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002046/0.0002046, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.08665, allocations: 63.57 MB / 483.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2357/0.3224, allocations: 94.1 MB / 0.5637 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02668/0.3491, allocations: 22.36 MB / 0.5856 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/0.3514, allocations: 103.1 kB / 0.5857 GB, free: 14.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.3532, allocations: 0.8238 MB / 0.5865 GB, free: 14.12 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00731/0.3605, allocations: 3.516 MB / 0.5899 GB, free: 10.59 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009747/0.3703, allocations: 4.964 MB / 0.5948 GB, free: 5.629 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00936/0.3796, allocations: 10.6 MB / 0.6051 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001804/0.3814, allocations: 1.558 MB / 0.6066 GB, free: 9.43 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1212/0.5027, allocations: 73.43 MB / 0.6783 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.243/0.7457, allocations: 31.95 MB / 0.7095 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0005842/0.7463, allocations: 123.4 kB / 0.7097 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01045/0.7568, allocations: 5.976 MB / 0.7155 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0009252/0.7577, allocations: 0.9523 MB / 0.7164 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.7592, allocations: 1.378 MB / 0.7178 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005542/0.7648, allocations: 5.313 MB / 0.723 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.7648, allocations: 1.219 kB / 0.723 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7648, allocations: 0 / 0.723 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.703e-05/0.7648, allocations: 0 / 0.723 GB, free: 101.5 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.005757/0.7706, allocations: 2.981 MB / 0.7259 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.7706, allocations: 10.09 kB / 0.7259 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004504/0.7711, allocations: 352.4 kB / 0.7262 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006749/0.7718, allocations: 311.9 kB / 0.7265 GB, free: 99.99 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/0.7736, allocations: 1.572 MB / 0.7281 GB, free: 99.52 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.7737, allocations: 215.8 kB / 0.7283 GB, free: 99.46 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002692/0.774, allocations: 184.7 kB / 0.7284 GB, free: 99.46 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003861/0.7779, allocations: 3.295 MB / 0.7317 GB, free: 99.1 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.925e-05/0.7779, allocations: 9.344 kB / 0.7317 GB, free: 99.1 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002012/0.7781, allocations: 82.45 kB / 0.7317 GB, free: 99.1 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002422/0.7784, allocations: 251.7 kB / 0.732 GB, free: 99.09 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00395/0.7823, allocations: 3.111 MB / 0.735 GB, free: 99.08 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.01218/0.7945, allocations: 13.88 MB / 0.7486 GB, free: 91.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003084/0.7976, allocations: 2.206 MB / 0.7507 GB, free: 91.47 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/0.7989, allocations: 1.186 MB / 0.7519 GB, free: 91.28 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005339/0.8043, allocations: 5.642 MB / 0.7574 GB, free: 87.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.8043, allocations: 49.28 kB / 0.7574 GB, free: 87.46 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005004/0.8048, allocations: 235.6 kB / 0.7577 GB, free: 87.34 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 2.936e-06/0.8048, allocations: 0 / 0.7577 GB, free: 87.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.4558/1.261, allocations: 54.61 MB / 0.811 GB, free: 40.39 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.1112/1.372, allocations: 45.79 MB / 0.8557 GB, free: 10.21 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002256/1.374, allocations: 1.858 MB / 0.8575 GB, free: 8.312 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003797/1.375, allocations: 69.7 kB / 0.8576 GB, free: 8.238 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006809/1.375, allocations: 1.091 MB / 0.8587 GB, free: 7.141 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006887/1.376, allocations: 0.8719 MB / 0.8595 GB, free: 6.277 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003876/1.376, allocations: 231.5 kB / 0.8597 GB, free: 6.047 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.873e-05/1.376, allocations: 301.1 kB / 0.86 GB, free: 5.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003668/1.38, allocations: 2.184 MB / 0.8621 GB, free: 3.562 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004009/1.384, allocations: 2.835 MB / 0.8649 GB, free: 488 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009498/1.394, allocations: 5.444 MB / 0.8702 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/1.394, allocations: 4 kB / 0.8702 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01322/1.407, allocations: 7.525 MB / 0.8776 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000345/1.407, allocations: 0.6466 MB / 0.8782 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/1.407, allocations: 20 kB / 0.8782 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04169/1.449, allocations: 12.02 MB / 0.89 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/1.45, allocations: 352.6 kB / 0.8903 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/1.466, allocations: 8.679 MB / 0.8988 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003022/1.469, allocations: 266.5 kB / 0.899 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/1.469, allocations: 155.9 kB / 0.8992 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.221e-06/1.469, allocations: 4 kB / 0.8992 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01247/1.481, allocations: 7.04 MB / 0.9061 GB, free: 5.984 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/1.482, allocations: 16 kB / 0.9061 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02447/1.506, allocations: 7.915 MB / 0.9138 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/1.507, allocations: 398.2 kB / 0.9142 GB, free: 13.69 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/1.522, allocations: 8.19 MB / 0.9222 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002839/1.525, allocations: 263.7 kB / 0.9224 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/1.525, allocations: 159.9 kB / 0.9226 GB, free: 5.043 MB / 0.6075 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.00134/1.526, allocations: 0.7695 MB / 0.9233 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004088/1.527, allocations: 248.9 kB / 0.9236 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1715/1.698, allocations: 7.887 MB / 0.9313 GB, free: 261.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-05/1.698, allocations: 32.61 kB / 0.9313 GB, free: 261.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/1.698, allocations: 3.625 kB / 0.9313 GB, free: 261.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01184/1.71, allocations: 6.947 MB / 0.9381 GB, free: 259.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02145/1.732, allocations: 13.82 MB / 0.9516 GB, free: 253.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/1.732, allocations: 3.703 kB / 0.9516 GB, free: 253.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007458/1.732, allocations: 191.2 kB / 0.9518 GB, free: 253.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03751/1.77, allocations: 11.56 MB / 0.9631 GB, free: 251.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002182/1.77, allocations: 83.95 kB / 0.9632 GB, free: 251.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/1.783, allocations: 8.392 MB / 0.9714 GB, free: 243.1 MB / 0.6075 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.1071/1.89, allocations: 45.78 MB / 1.016 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/1.905, allocations: 10.49 MB / 1.026 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/1.906, allocations: 0.8093 MB / 1.027 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003958/1.907, allocations: 48 kB / 1.027 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002449/1.909, allocations: 259.1 kB / 1.027 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003826/1.91, allocations: 202 kB / 1.028 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002305/1.91, allocations: 113.2 kB / 1.028 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001269/1.911, allocations: 1.277 MB / 1.029 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/1.911, allocations: 0 / 1.029 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005929/1.917, allocations: 2.911 MB / 1.032 GB, free: 181.6 MB / 0.6075 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.02099/1.938, allocations: 13.04 MB / 1.045 GB, free: 168.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01987/1.958, allocations: 9.169 MB / 1.053 GB, free: 159.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.958, allocations: 0 / 1.053 GB, free: 159.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.007502/1.965, allocations: 3.245 MB / 1.057 GB, free: 156.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00416/1.97, allocations: 1.007 MB / 1.058 GB, free: 155.1 MB / 0.6075 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4560:9-4560:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]