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.001791/0.001791, allocations: 104.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002215/0.002215, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.232/0.232, allocations: 46.1 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 76.78 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1212, allocations: 62.45 MB / 479.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3268/0.448, allocations: 95.81 MB / 0.5617 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0372/0.4852, allocations: 22.65 MB / 0.5838 GB, free: 13.21 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004686/0.4899, allocations: 115.1 kB / 0.5839 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003416/0.4934, allocations: 0.8121 MB / 0.5847 GB, free: 12.28 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0113/0.5047, allocations: 3.532 MB / 0.5882 GB, free: 8.734 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01373/0.5185, allocations: 4.954 MB / 0.593 GB, free: 3.785 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01454/0.5331, allocations: 10.61 MB / 0.6034 GB, free: 9.156 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004908/0.538, allocations: 1.579 MB / 0.6049 GB, free: 7.551 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1848/0.7228, allocations: 73.43 MB / 0.6766 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4159/1.139, allocations: 31.97 MB / 0.7079 GB, free: 99.86 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001155/1.14, allocations: 131.2 kB / 0.708 GB, free: 99.86 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01695/1.157, allocations: 5.986 MB / 0.7138 GB, free: 98.95 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002424/1.159, allocations: 0.9667 MB / 0.7148 GB, free: 98.95 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003452/1.163, allocations: 1.37 MB / 0.7161 GB, free: 98.95 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01212/1.175, allocations: 5.363 MB / 0.7213 GB, free: 98.75 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/1.175, allocations: 2.156 kB / 0.7213 GB, free: 98.75 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.043e-06/1.175, allocations: 3.969 kB / 0.7214 GB, free: 98.75 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001132/1.175, allocations: 1.656 kB / 0.7214 GB, free: 98.75 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.009892/1.185, allocations: 3.488 MB / 0.7248 GB, free: 97.35 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/1.185, allocations: 9.594 kB / 0.7248 GB, free: 97.35 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005717/1.186, allocations: 343.7 kB / 0.7251 GB, free: 97.29 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/1.187, allocations: 306.2 kB / 0.7254 GB, free: 97.15 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002722/1.19, allocations: 1.568 MB / 0.7269 GB, free: 96.68 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/1.19, allocations: 219 kB / 0.7271 GB, free: 96.61 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003108/1.19, allocations: 188.9 kB / 0.7273 GB, free: 96.61 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005377/1.195, allocations: 3.29 MB / 0.7305 GB, free: 96.25 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.782e-05/1.195, allocations: 6.906 kB / 0.7305 GB, free: 96.25 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/1.196, allocations: 84 kB / 0.7306 GB, free: 96.25 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002969/1.196, allocations: 252.8 kB / 0.7309 GB, free: 96.25 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004834/1.201, allocations: 3.102 MB / 0.7339 GB, free: 96.23 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.01739/1.218, allocations: 13.84 MB / 0.7474 GB, free: 89.01 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003573/1.222, allocations: 2.201 MB / 0.7495 GB, free: 88.66 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/1.223, allocations: 1.176 MB / 0.7507 GB, free: 88.47 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007523/1.231, allocations: 5.626 MB / 0.7562 GB, free: 84.68 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/1.231, allocations: 54 kB / 0.7562 GB, free: 84.64 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001047/1.232, allocations: 236.5 kB / 0.7565 GB, free: 84.51 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 4.949e-06/1.232, allocations: 3.844 kB / 0.7565 GB, free: 84.51 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5306/1.763, allocations: 55.32 MB / 0.8105 GB, free: 34.79 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.1376/1.9, allocations: 45.41 MB / 0.8548 GB, free: 4.996 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00338/1.904, allocations: 1.862 MB / 0.8567 GB, free: 3.094 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007451/1.905, allocations: 65.7 kB / 0.8567 GB, free: 3.023 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009196/1.905, allocations: 1.096 MB / 0.8578 GB, free: 1.922 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001312/1.907, allocations: 0.8608 MB / 0.8586 GB, free: 1.066 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001899/1.909, allocations: 0.5722 MB / 0.8592 GB, free: 500 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.58e-05/1.909, allocations: 301.1 kB / 0.8595 GB, free: 196 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004615/1.913, allocations: 2.183 MB / 0.8616 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005313/1.919, allocations: 2.827 MB / 0.8644 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/1.931, allocations: 5.411 MB / 0.8696 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.427e-05/1.931, allocations: 4 kB / 0.8697 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01869/1.95, allocations: 7.486 MB / 0.877 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/1.95, allocations: 12 kB / 0.877 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-05/1.95, allocations: 20 kB / 0.877 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04694/1.997, allocations: 11.83 MB / 0.8886 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/1.999, allocations: 349 kB / 0.8889 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02026/2.019, allocations: 8.626 MB / 0.8973 GB, free: 9.039 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004526/2.024, allocations: 253.4 kB / 0.8975 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008332/2.025, allocations: 155.9 kB / 0.8977 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00653/2.031, allocations: 2.68 MB / 0.9003 GB, free: 5.953 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00555/2.037, allocations: 2.753 MB / 0.903 GB, free: 2.945 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01236/2.049, allocations: 5.295 MB / 0.9082 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.446e-05/2.049, allocations: 7.984 kB / 0.9082 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01757/2.067, allocations: 7.212 MB / 0.9152 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/2.067, allocations: 16 kB / 0.9152 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.081e-05/2.067, allocations: 19.94 kB / 0.9153 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02762/2.095, allocations: 7.678 MB / 0.9228 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002039/2.097, allocations: 383.2 kB / 0.9231 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01892/2.116, allocations: 8.147 MB / 0.9311 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004272/2.12, allocations: 251.8 kB / 0.9313 GB, free: 5.766 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008347/2.121, allocations: 147.9 kB / 0.9315 GB, free: 5.621 MB / 0.6231 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.00137/2.122, allocations: 344.6 kB / 0.9318 GB, free: 5.301 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/2.123, allocations: 249 kB / 0.932 GB, free: 5.055 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2399/2.363, allocations: 7.829 MB / 0.9397 GB, free: 276.4 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.07e-05/2.363, allocations: 35.59 kB / 0.9397 GB, free: 276.4 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/2.363, allocations: 6.406 kB / 0.9397 GB, free: 276.4 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01571/2.379, allocations: 6.884 MB / 0.9464 GB, free: 274.3 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03211/2.411, allocations: 13.77 MB / 0.9599 GB, free: 268.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-05/2.411, allocations: 5.469 kB / 0.9599 GB, free: 268.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/2.412, allocations: 188.8 kB / 0.9601 GB, free: 268.9 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04241/2.455, allocations: 11.4 MB / 0.9712 GB, free: 267.4 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008504/2.456, allocations: 81.67 kB / 0.9713 GB, free: 267.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01656/2.472, allocations: 8.334 MB / 0.9794 GB, free: 261.7 MB / 0.6231 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.1235/2.596, allocations: 45.42 MB / 1.024 GB, free: 216.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01881/2.615, allocations: 10.42 MB / 1.034 GB, free: 206.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002104/2.617, allocations: 0.8068 MB / 1.035 GB, free: 205.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009074/2.618, allocations: 48 kB / 1.035 GB, free: 205.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003222/2.621, allocations: 245 kB / 1.035 GB, free: 205 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000515/2.621, allocations: 202 kB / 1.035 GB, free: 204.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003385/2.622, allocations: 111.9 kB / 1.035 GB, free: 204.7 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00185/2.624, allocations: 1.273 MB / 1.037 GB, free: 203.4 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.2e-07/2.624, allocations: 0 / 1.037 GB, free: 203.4 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00965/2.633, allocations: 2.91 MB / 1.039 GB, free: 200.7 MB / 0.6231 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.02868/2.662, allocations: 12.98 MB / 1.052 GB, free: 187.8 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.02557/2.688, allocations: 9.124 MB / 1.061 GB, free: 178.6 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/2.688, allocations: 0 / 1.061 GB, free: 178.6 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.009066/2.697, allocations: 3.21 MB / 1.064 GB, free: 175.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005046/2.702, allocations: 1.009 MB / 1.065 GB, free: 174.4 MB / 0.6231 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4614:9-4614:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:774:5-774:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]