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.001276/0.001276, allocations: 108 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 205.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2152/0.2152, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 68.72 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1155, allocations: 62.45 MB / 479.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3094/0.4249, allocations: 93.53 MB / 0.5597 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03216/0.4572, allocations: 21.81 MB / 0.581 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003361/0.4605, allocations: 119.1 kB / 0.5811 GB, free: 15.71 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002889/0.4635, allocations: 0.8316 MB / 0.5819 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009385/0.4729, allocations: 3.501 MB / 0.5853 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01295/0.4859, allocations: 5.235 MB / 0.5904 GB, free: 6.133 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00907/0.495, allocations: 6.96 MB / 0.5972 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003293/0.4983, allocations: 1.807 MB / 0.599 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1551/0.6534, allocations: 74.46 MB / 0.6717 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06452/0.7179, allocations: 32.13 MB / 0.7031 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001146/0.7191, allocations: 244 kB / 0.7033 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2833/1.002, allocations: 6.13 MB / 0.7093 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001708/1.004, allocations: 1.08 MB / 0.7104 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002368/1.007, allocations: 1.496 MB / 0.7118 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01028/1.017, allocations: 5.453 MB / 0.7172 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/1.017, allocations: 3.969 kB / 0.7172 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.393e-06/1.017, allocations: 0 / 0.7172 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.954e-05/1.017, allocations: 1 kB / 0.7172 GB, free: 106.6 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.009556/1.027, allocations: 3.488 MB / 0.7206 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.027, allocations: 13.47 kB / 0.7206 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000579/1.027, allocations: 345.4 kB / 0.7209 GB, free: 105 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001225/1.028, allocations: 307.2 kB / 0.7212 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002722/1.031, allocations: 1.572 MB / 0.7227 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/1.031, allocations: 217.2 kB / 0.723 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/1.032, allocations: 185.3 kB / 0.7231 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005403/1.037, allocations: 3.291 MB / 0.7263 GB, free: 104 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.797e-05/1.037, allocations: 8.188 kB / 0.7263 GB, free: 104 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/1.037, allocations: 83.89 kB / 0.7264 GB, free: 104 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002971/1.038, allocations: 248.6 kB / 0.7267 GB, free: 104 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004544/1.042, allocations: 3.099 MB / 0.7297 GB, free: 104 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.01577/1.058, allocations: 13.84 MB / 0.7432 GB, free: 96.85 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00337/1.061, allocations: 2.198 MB / 0.7454 GB, free: 96.51 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/1.063, allocations: 1.185 MB / 0.7465 GB, free: 96.32 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006369/1.069, allocations: 5.626 MB / 0.752 GB, free: 92.54 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/1.069, allocations: 55.2 kB / 0.7521 GB, free: 92.49 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008375/1.07, allocations: 208 kB / 0.7523 GB, free: 92.38 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 3.456e-06/1.07, allocations: 0 / 0.7523 GB, free: 92.38 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5429/1.613, allocations: 55.42 MB / 0.8064 GB, free: 40.91 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.1345/1.748, allocations: 45.55 MB / 0.8509 GB, free: 10.95 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003786/1.751, allocations: 1.858 MB / 0.8527 GB, free: 9.051 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000789/1.752, allocations: 69.7 kB / 0.8527 GB, free: 8.977 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001061/1.753, allocations: 1.093 MB / 0.8538 GB, free: 7.879 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.755, allocations: 0.8693 MB / 0.8547 GB, free: 7.016 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002114/1.757, allocations: 0.5644 MB / 0.8552 GB, free: 6.445 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001689/1.757, allocations: 309.1 kB / 0.8555 GB, free: 6.141 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004747/1.762, allocations: 2.192 MB / 0.8576 GB, free: 3.941 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005169/1.767, allocations: 2.819 MB / 0.8604 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/1.779, allocations: 5.439 MB / 0.8657 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-05/1.779, allocations: 4 kB / 0.8657 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01929/1.799, allocations: 7.494 MB / 0.873 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/1.799, allocations: 12 kB / 0.873 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-05/1.799, allocations: 20 kB / 0.8731 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04683/1.846, allocations: 11.87 MB / 0.8847 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/1.848, allocations: 354 kB / 0.885 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02045/1.868, allocations: 8.622 MB / 0.8934 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004067/1.872, allocations: 255.8 kB / 0.8937 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007424/1.873, allocations: 155.9 kB / 0.8938 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005966/1.879, allocations: 2.691 MB / 0.8964 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005437/1.885, allocations: 2.762 MB / 0.8991 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01242/1.897, allocations: 5.308 MB / 0.9043 GB, free: 3.266 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.331e-05/1.897, allocations: 4 kB / 0.9043 GB, free: 3.262 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01903/1.916, allocations: 7.23 MB / 0.9114 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/1.916, allocations: 15.98 kB / 0.9114 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.641e-05/1.916, allocations: 20 kB / 0.9114 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02628/1.942, allocations: 7.685 MB / 0.9189 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/1.945, allocations: 397.2 kB / 0.9193 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2428/2.188, allocations: 8.147 MB / 0.9272 GB, free: 260.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004697/2.192, allocations: 252.9 kB / 0.9275 GB, free: 260.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000615/2.193, allocations: 147.3 kB / 0.9276 GB, free: 260.5 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.0009621/2.194, allocations: 342.7 kB / 0.928 GB, free: 260.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000757/2.195, allocations: 247 kB / 0.9282 GB, free: 260.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01938/2.214, allocations: 8.055 MB / 0.9361 GB, free: 258 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.621e-05/2.214, allocations: 32.23 kB / 0.9361 GB, free: 258 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/2.214, allocations: 3.75 kB / 0.9361 GB, free: 258 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01548/2.23, allocations: 7.071 MB / 0.943 GB, free: 255.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02524/2.255, allocations: 13.81 MB / 0.9565 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.278e-05/2.255, allocations: 3.969 kB / 0.9565 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009722/2.256, allocations: 190.5 kB / 0.9567 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04153/2.298, allocations: 11.27 MB / 0.9677 GB, free: 243.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001001/2.299, allocations: 83.95 kB / 0.9678 GB, free: 243.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01558/2.314, allocations: 8.348 MB / 0.9759 GB, free: 234.8 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.1286/2.443, allocations: 45.09 MB / 1.02 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02092/2.464, allocations: 10.67 MB / 1.03 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002073/2.466, allocations: 0.8096 MB / 1.031 GB, free: 178.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009225/2.467, allocations: 52.06 kB / 1.031 GB, free: 178.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003232/2.47, allocations: 245.1 kB / 1.031 GB, free: 178 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005269/2.471, allocations: 206 kB / 1.032 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003604/2.471, allocations: 104 kB / 1.032 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001857/2.473, allocations: 1.281 MB / 1.033 GB, free: 176.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/2.473, allocations: 0 / 1.033 GB, free: 176.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009089/2.482, allocations: 2.909 MB / 1.036 GB, free: 173.7 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 (95): * Single equations (assignments): 89 * 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.02778/2.51, allocations: 13.22 MB / 1.049 GB, free: 160.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02925/2.539, allocations: 10.37 MB / 1.059 GB, free: 150.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/2.539, allocations: 4.438 kB / 1.059 GB, free: 150.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009087/2.548, allocations: 3.232 MB / 1.062 GB, free: 146.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006242/2.554, allocations: 1.07 MB / 1.063 GB, free: 145.8 MB / 0.6075 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4638:9-4638:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]