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.001527/0.001527, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2108/0.2108, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 76.16 kB / 480.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3228, allocations: 62.42 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.08806/0.4109, allocations: 90.46 MB / 0.6189 GB, free: 7.02 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03154/0.4425, allocations: 21.35 MB / 0.6397 GB, free: 1.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003452/0.446, allocations: 83.5 kB / 0.6398 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002949/0.449, allocations: 0.9472 MB / 0.6407 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009938/0.4589, allocations: 3.732 MB / 0.6444 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01333/0.4723, allocations: 5.678 MB / 0.6499 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.008718/0.481, allocations: 6.929 MB / 0.6567 GB, free: 204 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00354/0.4846, allocations: 1.817 MB / 0.6585 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.5134/0.998, allocations: 74.97 MB / 0.7317 GB, free: 59.26 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06586/1.064, allocations: 31.93 MB / 0.7629 GB, free: 49.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001051/1.065, allocations: 245.5 kB / 0.7631 GB, free: 49.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01421/1.079, allocations: 6.116 MB / 0.7691 GB, free: 48.55 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002011/1.081, allocations: 1.073 MB / 0.7701 GB, free: 48.55 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002797/1.084, allocations: 1.487 MB / 0.7716 GB, free: 48.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0104/1.094, allocations: 5.508 MB / 0.7769 GB, free: 45.04 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/1.095, allocations: 4 kB / 0.7769 GB, free: 45.04 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.733e-06/1.095, allocations: 0 / 0.7769 GB, free: 45.04 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.842e-05/1.095, allocations: 4 kB / 0.7769 GB, free: 45.04 MB / 0.5606 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.008923/1.104, allocations: 3.496 MB / 0.7804 GB, free: 42 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/1.104, allocations: 8.031 kB / 0.7804 GB, free: 41.99 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005562/1.104, allocations: 338.4 kB / 0.7807 GB, free: 41.78 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/1.105, allocations: 312.5 kB / 0.781 GB, free: 41.47 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003328/1.109, allocations: 1.664 MB / 0.7826 GB, free: 40.14 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/1.109, allocations: 212.9 kB / 0.7828 GB, free: 39.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004096/1.109, allocations: 186.8 kB / 0.783 GB, free: 39.86 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005171/1.114, allocations: 3.295 MB / 0.7862 GB, free: 37.44 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.561e-05/1.114, allocations: 4 kB / 0.7862 GB, free: 37.43 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002425/1.115, allocations: 82.55 kB / 0.7863 GB, free: 37.41 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002516/1.115, allocations: 252.4 kB / 0.7865 GB, free: 37.2 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005037/1.12, allocations: 3.104 MB / 0.7896 GB, free: 35.14 MB / 0.5606 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.01783/1.138, allocations: 13.84 MB / 0.8031 GB, free: 22.94 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003792/1.142, allocations: 2.206 MB / 0.8052 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/1.143, allocations: 1.177 MB / 0.8064 GB, free: 20.8 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008686/1.152, allocations: 5.621 MB / 0.8119 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/1.152, allocations: 55.86 kB / 0.8119 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007668/1.153, allocations: 162 kB / 0.8121 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 6.312e-06/1.153, allocations: 3.188 kB / 0.8121 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.5363/1.689, allocations: 55.31 MB / 0.8661 GB, free: 7.562 MB / 0.6075 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1645/1.854, allocations: 45.51 MB / 0.9105 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/1.857, allocations: 1.854 MB / 0.9124 GB, free: 7.758 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0006228/1.857, allocations: 69.7 kB / 0.9124 GB, free: 7.684 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008657/1.858, allocations: 1.089 MB / 0.9135 GB, free: 6.59 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001179/1.86, allocations: 0.8712 MB / 0.9143 GB, free: 5.727 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001574/1.861, allocations: 0.5683 MB / 0.9149 GB, free: 5.152 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001081/1.861, allocations: 309.1 kB / 0.9152 GB, free: 4.848 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004225/1.866, allocations: 2.178 MB / 0.9173 GB, free: 2.664 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004701/1.87, allocations: 2.825 MB / 0.9201 GB, free: 15.59 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/1.881, allocations: 5.413 MB / 0.9254 GB, free: 9.957 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.311e-05/1.881, allocations: 4 kB / 0.9254 GB, free: 9.953 MB / 0.67 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.0166/1.898, allocations: 7.48 MB / 0.9327 GB, free: 2.527 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/1.898, allocations: 12 kB / 0.9327 GB, free: 2.516 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-05/1.898, allocations: 20 kB / 0.9327 GB, free: 2.496 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04638/1.944, allocations: 11.84 MB / 0.9443 GB, free: 6.684 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/1.946, allocations: 350.6 kB / 0.9446 GB, free: 6.363 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/1.965, allocations: 8.625 MB / 0.953 GB, free: 13.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003641/1.969, allocations: 195.8 kB / 0.9532 GB, free: 13.5 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006634/1.97, allocations: 147.9 kB / 0.9533 GB, free: 13.36 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005498/1.975, allocations: 2.69 MB / 0.956 GB, free: 10.67 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00491/1.98, allocations: 2.756 MB / 0.9587 GB, free: 7.656 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01192/1.992, allocations: 5.289 MB / 0.9638 GB, free: 2.148 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.219e-05/1.992, allocations: 8 kB / 0.9638 GB, free: 2.141 MB / 0.7012 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01614/2.008, allocations: 7.206 MB / 0.9709 GB, free: 11 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/2.008, allocations: 12 kB / 0.9709 GB, free: 10.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.581e-05/2.008, allocations: 23.98 kB / 0.9709 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02635/2.035, allocations: 7.673 MB / 0.9784 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/2.037, allocations: 398.7 kB / 0.9788 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3121/2.349, allocations: 8.136 MB / 0.9867 GB, free: 321.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003759/2.353, allocations: 190.6 kB / 0.9869 GB, free: 321 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006697/2.353, allocations: 145.5 kB / 0.987 GB, free: 321 MB / 0.7169 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.0009054/2.354, allocations: 341 kB / 0.9874 GB, free: 320.7 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008293/2.355, allocations: 248.4 kB / 0.9876 GB, free: 320.7 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01582/2.371, allocations: 7.827 MB / 0.9953 GB, free: 318 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.932e-05/2.371, allocations: 35.47 kB / 0.9953 GB, free: 318 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/2.371, allocations: 7.5 kB / 0.9953 GB, free: 318 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01214/2.383, allocations: 6.88 MB / 1.002 GB, free: 315.4 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02644/2.41, allocations: 13.76 MB / 1.015 GB, free: 307.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.827e-05/2.41, allocations: 0 / 1.015 GB, free: 307.9 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009662/2.411, allocations: 193.3 kB / 1.016 GB, free: 307.9 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04165/2.452, allocations: 11.25 MB / 1.027 GB, free: 297.3 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008361/2.453, allocations: 83.95 kB / 1.027 GB, free: 297.2 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01608/2.469, allocations: 8.331 MB / 1.035 GB, free: 288.9 MB / 0.7169 GB 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.1226/2.592, allocations: 42.25 MB / 1.076 GB, free: 246.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01977/2.612, allocations: 10.44 MB / 1.086 GB, free: 236.3 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00194/2.614, allocations: 0.7969 MB / 1.087 GB, free: 235.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008937/2.615, allocations: 52 kB / 1.087 GB, free: 235.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003045/2.618, allocations: 179.8 kB / 1.087 GB, free: 235.3 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005147/2.618, allocations: 198 kB / 1.087 GB, free: 235.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003902/2.619, allocations: 115.9 kB / 1.088 GB, free: 235 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002037/2.621, allocations: 1.273 MB / 1.089 GB, free: 233.7 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.81e-07/2.621, allocations: 0 / 1.089 GB, free: 233.7 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.008836/2.629, allocations: 2.911 MB / 1.092 GB, free: 231 MB / 0.7169 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.02758/2.657, allocations: 12.97 MB / 1.104 GB, free: 218.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.02627/2.683, allocations: 9.199 MB / 1.113 GB, free: 209.1 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/2.683, allocations: 4 kB / 1.113 GB, free: 209.1 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.009528/2.693, allocations: 3.223 MB / 1.116 GB, free: 205.8 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006013/2.699, allocations: 1.063 MB / 1.118 GB, free: 204.8 MB / 0.7169 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4690:9-4690:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]