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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009983/0.0009983, allocations: 92.27 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 152.9 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8934/0.8934, allocations: 177 MB / 204.5 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2457/0.2457, allocations: 34.25 MB / 295.2 MB, free: 0.6562 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.92e-07/9.92e-07, allocations: 0 / 376.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.234e-05/1.334e-05, allocations: 10.25 kB / 376.7 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2212/0.2212, allocations: 81.38 MB / 458.1 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01854/0.2397, allocations: 19.61 MB / 477.7 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001756/0.2415, allocations: 123.5 kB / 477.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.2433, allocations: 0.9308 MB / 478.8 MB, free: 43.34 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006218/0.2495, allocations: 3.998 MB / 482.8 MB, free: 42.21 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009901/0.2594, allocations: 6.713 MB / 489.5 MB, free: 39.96 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.006625/0.2661, allocations: 6.801 MB / 496.3 MB, free: 37.32 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002421/0.2685, allocations: 1.662 MB / 498 MB, free: 36.36 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07868/0.3472, allocations: 75.29 MB / 0.5598 GB, free: 11.57 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03553/0.3827, allocations: 31.74 MB / 0.5908 GB, free: 11.96 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001019/0.3837, allocations: 248 kB / 0.5911 GB, free: 11.71 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008971/0.3927, allocations: 5.448 MB / 0.5964 GB, free: 6.348 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001232/0.3939, allocations: 1.156 MB / 0.5975 GB, free: 5.238 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001925/0.3958, allocations: 1.061 MB / 0.5985 GB, free: 4.219 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008749/0.4046, allocations: 5.733 MB / 0.6041 GB, free: 14.66 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4046, allocations: 0 / 0.6041 GB, free: 14.66 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4046, allocations: 0 / 0.6041 GB, free: 14.66 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001189/0.4047, allocations: 0 / 0.6041 GB, free: 14.66 MB / 490.7 MB 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.005982/0.4107, allocations: 3.489 MB / 0.6075 GB, free: 11.12 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.4107, allocations: 16.02 kB / 0.6076 GB, free: 11.1 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004056/0.4111, allocations: 342.1 kB / 0.6079 GB, free: 10.76 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008448/0.412, allocations: 0.5054 MB / 0.6084 GB, free: 10.25 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.4139, allocations: 1.676 MB / 0.61 GB, free: 8.523 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.414, allocations: 278.5 kB / 0.6103 GB, free: 8.227 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002531/0.4143, allocations: 192 kB / 0.6105 GB, free: 8.039 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004714/0.419, allocations: 3.657 MB / 0.614 GB, free: 4.168 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/0.419, allocations: 7.984 kB / 0.614 GB, free: 4.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/0.4192, allocations: 83.95 kB / 0.6141 GB, free: 4.078 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/0.4194, allocations: 255.7 kB / 0.6144 GB, free: 3.828 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003526/0.4229, allocations: 3.091 MB / 0.6174 GB, free: 0.7344 MB / 490.7 MB 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.1379/0.5609, allocations: 10.2 MB / 0.6273 GB, free: 175.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002111/0.563, allocations: 2.068 MB / 0.6294 GB, free: 174.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009769/0.564, allocations: 1.107 MB / 0.6304 GB, free: 174.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003946/0.5679, allocations: 3.296 MB / 0.6337 GB, free: 173 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.5679, allocations: 56.72 kB / 0.6337 GB, free: 172.9 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003956/0.5683, allocations: 160.7 kB / 0.6339 GB, free: 172.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=157): time 3.927e-06/0.5683, allocations: 0 / 0.6339 GB, free: 172.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.2475/0.8158, allocations: 55.31 MB / 0.6879 GB, free: 139.4 MB / 490.7 MB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.08411/0.8999, allocations: 51.51 MB / 0.7382 GB, free: 87.54 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002007/0.9019, allocations: 1.892 MB / 0.74 GB, free: 85.63 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007101/0.9026, allocations: 73.7 kB / 0.7401 GB, free: 85.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/0.9031, allocations: 1.11 MB / 0.7412 GB, free: 84.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005867/0.9037, allocations: 0.8954 MB / 0.7421 GB, free: 83.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006712/0.9044, allocations: 0.5684 MB / 0.7426 GB, free: 83.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 3.723e-05/0.9044, allocations: 301.1 kB / 0.7429 GB, free: 82.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002439/0.9069, allocations: 2.184 MB / 0.745 GB, free: 80.71 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/0.9093, allocations: 2.825 MB / 0.7478 GB, free: 77.62 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005773/0.9151, allocations: 5.418 MB / 0.7531 GB, free: 71.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.9151, allocations: 4 kB / 0.7531 GB, free: 71.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=358) (initialization): time 0.00927/0.9243, allocations: 7.531 MB / 0.7604 GB, free: 64.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.9244, allocations: 12 kB / 0.7605 GB, free: 64.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/0.9244, allocations: 20 kB / 0.7605 GB, free: 64.28 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02181/0.9462, allocations: 11.95 MB / 0.7721 GB, free: 52.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009692/0.9472, allocations: 343.4 kB / 0.7725 GB, free: 52.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009533/0.9567, allocations: 8.733 MB / 0.781 GB, free: 43.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/0.9589, allocations: 195.8 kB / 0.7812 GB, free: 43.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002471/0.9592, allocations: 151.9 kB / 0.7813 GB, free: 42.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003148/0.9623, allocations: 2.684 MB / 0.7839 GB, free: 40.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002437/0.9648, allocations: 2.759 MB / 0.7866 GB, free: 37.17 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0058/0.9706, allocations: 5.296 MB / 0.7918 GB, free: 31.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.622e-05/0.9706, allocations: 4 kB / 0.7918 GB, free: 31.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=358) (initialization_lambda0): time 0.009096/0.9797, allocations: 7.273 MB / 0.7989 GB, free: 24.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.9797, allocations: 12 kB / 0.7989 GB, free: 24.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.9797, allocations: 20 kB / 0.7989 GB, free: 24.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01286/0.9926, allocations: 7.795 MB / 0.8066 GB, free: 16.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.9937, allocations: 391.3 kB / 0.8069 GB, free: 16.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008843/1.003, allocations: 8.233 MB / 0.815 GB, free: 7.734 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/1.005, allocations: 199.8 kB / 0.8152 GB, free: 7.539 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/1.005, allocations: 147.9 kB / 0.8153 GB, free: 7.395 MB / 490.7 MB 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 (170): * Single equations (assignments): 168 * 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.000643/1.005, allocations: 338.7 kB / 0.8156 GB, free: 7.062 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005221/1.006, allocations: 342.3 kB / 0.816 GB, free: 6.727 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1638/1.17, allocations: 7.86 MB / 0.8236 GB, free: 173.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.925e-05/1.17, allocations: 30.72 kB / 0.8237 GB, free: 173.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.17, allocations: 0 / 0.8237 GB, free: 173.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008433/1.178, allocations: 6.907 MB / 0.8304 GB, free: 171.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/1.193, allocations: 13.05 MB / 0.8431 GB, free: 166.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/1.193, allocations: 0 / 0.8431 GB, free: 166.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/1.193, allocations: 197.1 kB / 0.8433 GB, free: 166.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0217/1.215, allocations: 11.27 MB / 0.8543 GB, free: 165.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003055/1.215, allocations: 83.33 kB / 0.8544 GB, free: 165.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01059/1.226, allocations: 8.428 MB / 0.8626 GB, free: 162.1 MB / 490.7 MB 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.06256/1.289, allocations: 44.62 MB / 0.9062 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0126/1.301, allocations: 10.77 MB / 0.9167 GB, free: 110.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/1.303, allocations: 0.7517 MB / 0.9175 GB, free: 109.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003017/1.303, allocations: 52 kB / 0.9175 GB, free: 109.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/1.304, allocations: 173.4 kB / 0.9177 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/1.304, allocations: 211.3 kB / 0.9179 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001676/1.305, allocations: 107.9 kB / 0.918 GB, free: 108.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001169/1.306, allocations: 1.273 MB / 0.9192 GB, free: 107.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.306, allocations: 0 / 0.9192 GB, free: 107.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006276/1.312, allocations: 2.93 MB / 0.9221 GB, free: 105 MB / 490.7 MB 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 (92): * Single equations (assignments): 86 * 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.0207/1.333, allocations: 13.49 MB / 0.9353 GB, free: 91.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01367/1.346, allocations: 8.83 MB / 0.9439 GB, free: 82.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.346, allocations: 0 / 0.9439 GB, free: 82.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004754/1.351, allocations: 3.011 MB / 0.9468 GB, free: 79.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/1.354, allocations: 1.131 MB / 0.9479 GB, free: 78.59 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4696:9-4696:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:846:5-846:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.1013005530112423]