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.001233/0.001233, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001615, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.7 MB / 246.8 MB, free: 11.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2202/0.2202, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002726, allocations: 4 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1207, 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.3336/0.4543, allocations: 94.1 MB / 0.5637 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03321/0.4876, allocations: 22.36 MB / 0.5856 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00412/0.4918, allocations: 107.1 kB / 0.5857 GB, free: 15.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002993/0.4948, allocations: 0.816 MB / 0.5865 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01115/0.506, allocations: 3.524 MB / 0.5899 GB, free: 10.68 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01286/0.5188, allocations: 4.956 MB / 0.5948 GB, free: 5.727 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.5314, allocations: 10.61 MB / 0.6051 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003422/0.5349, allocations: 1.562 MB / 0.6066 GB, free: 9.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1477/0.6826, allocations: 73.42 MB / 0.6783 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3807/1.063, allocations: 31.95 MB / 0.7095 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001278/1.065, allocations: 122.7 kB / 0.7097 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01732/1.082, allocations: 5.975 MB / 0.7155 GB, free: 101.8 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002598/1.085, allocations: 0.959 MB / 0.7164 GB, free: 101.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.004348/1.089, allocations: 1.379 MB / 0.7178 GB, free: 101.8 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01258/1.102, allocations: 5.309 MB / 0.723 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/1.102, allocations: 0 / 0.723 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.094e-06/1.102, allocations: 3.594 kB / 0.723 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.037e-05/1.102, allocations: 0 / 0.723 GB, free: 101.7 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.009167/1.111, allocations: 2.985 MB / 0.7259 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 8.25e-05/1.111, allocations: 9.375 kB / 0.7259 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000874/1.112, allocations: 346 kB / 0.7262 GB, free: 100.3 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/1.113, allocations: 309.4 kB / 0.7265 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002858/1.116, allocations: 1.57 MB / 0.7281 GB, free: 99.7 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/1.116, allocations: 218 kB / 0.7283 GB, free: 99.63 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003127/1.116, allocations: 187.3 kB / 0.7284 GB, free: 99.63 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005091/1.121, allocations: 3.297 MB / 0.7317 GB, free: 99.27 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.745e-05/1.122, allocations: 6.25 kB / 0.7317 GB, free: 99.27 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002339/1.122, allocations: 88.48 kB / 0.7317 GB, free: 99.27 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003172/1.122, allocations: 250.8 kB / 0.732 GB, free: 99.27 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004947/1.127, allocations: 3.106 MB / 0.735 GB, free: 99.25 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.01593/1.143, allocations: 13.87 MB / 0.7486 GB, free: 91.98 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003672/1.147, allocations: 2.211 MB / 0.7507 GB, free: 91.64 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/1.148, allocations: 1.181 MB / 0.7519 GB, free: 91.45 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007034/1.155, allocations: 5.649 MB / 0.7574 GB, free: 87.68 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/1.155, allocations: 50.25 kB / 0.7574 GB, free: 87.64 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009989/1.156, allocations: 230.3 kB / 0.7577 GB, free: 87.52 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 6.442e-06/1.156, allocations: 0 / 0.7577 GB, free: 87.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5007/1.657, allocations: 54.61 MB / 0.811 GB, free: 40.62 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.1292/1.786, allocations: 45.78 MB / 0.8557 GB, free: 10.44 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003334/1.79, allocations: 1.862 MB / 0.8575 GB, free: 8.539 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000699/1.79, allocations: 69.7 kB / 0.8576 GB, free: 8.465 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009139/1.791, allocations: 1.094 MB / 0.8587 GB, free: 7.363 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001212/1.793, allocations: 0.8676 MB / 0.8595 GB, free: 6.504 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000662/1.793, allocations: 227.5 kB / 0.8597 GB, free: 6.277 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.56e-05/1.793, allocations: 301.1 kB / 0.86 GB, free: 5.98 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004356/1.798, allocations: 2.191 MB / 0.8622 GB, free: 3.789 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004847/1.803, allocations: 2.83 MB / 0.8649 GB, free: 0.707 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/1.814, allocations: 5.45 MB / 0.8702 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.564e-05/1.814, allocations: 12 kB / 0.8702 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01613/1.83, allocations: 7.515 MB / 0.8776 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004695/1.83, allocations: 0.6429 MB / 0.8782 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.495e-05/1.831, allocations: 20 kB / 0.8782 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04696/1.878, allocations: 12.02 MB / 0.89 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/1.879, allocations: 355.9 kB / 0.8903 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01837/1.898, allocations: 8.677 MB / 0.8988 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004482/1.902, allocations: 271.7 kB / 0.899 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007579/1.903, allocations: 151.9 kB / 0.8992 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/1.903, allocations: 7.281 kB / 0.8992 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01609/1.919, allocations: 7.036 MB / 0.9061 GB, free: 6.223 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.717e-05/1.919, allocations: 20 kB / 0.9061 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02744/1.947, allocations: 7.92 MB / 0.9138 GB, free: 14.29 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/1.949, allocations: 395.9 kB / 0.9142 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01769/1.966, allocations: 8.187 MB / 0.9222 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/1.97, allocations: 271.7 kB / 0.9225 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007475/1.971, allocations: 147.9 kB / 0.9226 GB, free: 5.285 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.002302/1.974, allocations: 0.7651 MB / 0.9233 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009243/1.975, allocations: 248.9 kB / 0.9236 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2584/2.233, allocations: 7.892 MB / 0.9313 GB, free: 261.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.295e-05/2.233, allocations: 31.34 kB / 0.9313 GB, free: 261.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/2.233, allocations: 0.75 kB / 0.9313 GB, free: 261.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01443/2.247, allocations: 6.952 MB / 0.9381 GB, free: 259.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0306/2.278, allocations: 13.83 MB / 0.9516 GB, free: 253.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.321e-05/2.278, allocations: 3.172 kB / 0.9516 GB, free: 253.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009734/2.279, allocations: 193.8 kB / 0.9518 GB, free: 253.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04274/2.322, allocations: 11.57 MB / 0.9631 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009957/2.323, allocations: 86.64 kB / 0.9632 GB, free: 251.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/2.339, allocations: 8.39 MB / 0.9714 GB, free: 243.4 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.127/2.466, allocations: 45.77 MB / 1.016 GB, free: 197.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0208/2.487, allocations: 10.49 MB / 1.026 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002405/2.489, allocations: 0.8133 MB / 1.027 GB, free: 186.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/2.49, allocations: 52 kB / 1.027 GB, free: 186.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003876/2.494, allocations: 259.1 kB / 1.027 GB, free: 186.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006407/2.495, allocations: 198.2 kB / 1.028 GB, free: 186 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004354/2.495, allocations: 115.9 kB / 1.028 GB, free: 185.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00223/2.498, allocations: 1.274 MB / 1.029 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.31e-07/2.498, allocations: 0 / 1.029 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01103/2.509, allocations: 2.914 MB / 1.032 GB, free: 181.9 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.02711/2.536, allocations: 13.04 MB / 1.045 GB, free: 168.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02453/2.56, allocations: 9.158 MB / 1.053 GB, free: 159.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/2.56, allocations: 0 / 1.053 GB, free: 159.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009117/2.57, allocations: 3.245 MB / 1.057 GB, free: 156.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007099/2.577, allocations: 1.007 MB / 1.058 GB, free: 155.4 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]