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.001836/0.001836, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002055/0.002056, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.225/0.225, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00326/0.00326, allocations: 75.88 kB / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3498, allocations: 62.45 MB / 0.5306 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.09936/0.4492, allocations: 90.45 MB / 0.619 GB, free: 6.922 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03387/0.4831, allocations: 21.35 MB / 0.6398 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002557/0.4858, allocations: 91.38 kB / 0.6399 GB, free: 1.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00281/0.4886, allocations: 0.9434 MB / 0.6408 GB, free: 492 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009822/0.4985, allocations: 3.736 MB / 0.6445 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01333/0.5118, allocations: 5.678 MB / 0.65 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.009807/0.5216, allocations: 6.925 MB / 0.6568 GB, free: 108 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003464/0.5251, allocations: 1.809 MB / 0.6586 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4971/1.022, allocations: 74.91 MB / 0.7317 GB, free: 59.34 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06667/1.089, allocations: 31.94 MB / 0.7629 GB, free: 49.62 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001196/1.09, allocations: 245 kB / 0.7631 GB, free: 49.62 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01503/1.105, allocations: 6.113 MB / 0.7691 GB, free: 48.62 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002227/1.108, allocations: 1.075 MB / 0.7702 GB, free: 48.62 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00333/1.111, allocations: 1.489 MB / 0.7716 GB, free: 48.57 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01056/1.121, allocations: 5.529 MB / 0.777 GB, free: 44.85 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/1.122, allocations: 0 / 0.777 GB, free: 44.85 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.274e-06/1.122, allocations: 4 kB / 0.777 GB, free: 44.85 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001154/1.122, allocations: 0 / 0.777 GB, free: 44.85 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.008855/1.131, allocations: 3.592 MB / 0.7805 GB, free: 41.63 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/1.131, allocations: 12.03 kB / 0.7805 GB, free: 41.62 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004917/1.131, allocations: 339.7 kB / 0.7809 GB, free: 41.41 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/1.132, allocations: 326.1 kB / 0.7812 GB, free: 41.09 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003305/1.135, allocations: 1.681 MB / 0.7828 GB, free: 39.74 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/1.136, allocations: 214.6 kB / 0.783 GB, free: 39.58 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002933/1.136, allocations: 191.5 kB / 0.7832 GB, free: 39.46 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004611/1.141, allocations: 3.296 MB / 0.7864 GB, free: 37.04 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.538e-05/1.141, allocations: 0 / 0.7864 GB, free: 37.04 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000218/1.141, allocations: 82.36 kB / 0.7865 GB, free: 37.02 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002397/1.141, allocations: 256.2 kB / 0.7867 GB, free: 36.8 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004465/1.146, allocations: 3.102 MB / 0.7898 GB, free: 34.73 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.01648/1.162, allocations: 13.86 MB / 0.8033 GB, free: 22.54 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003788/1.166, allocations: 2.196 MB / 0.8054 GB, free: 21.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/1.168, allocations: 1.18 MB / 0.8066 GB, free: 20.41 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007324/1.175, allocations: 5.64 MB / 0.8121 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/1.175, allocations: 55.42 kB / 0.8122 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006679/1.176, allocations: 162.6 kB / 0.8123 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 4.749e-06/1.176, allocations: 4 kB / 0.8123 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.5151/1.691, allocations: 55.36 MB / 0.8664 GB, free: 7.02 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.1464/1.837, allocations: 45.54 MB / 0.9109 GB, free: 9.09 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002979/1.84, allocations: 1.862 MB / 0.9127 GB, free: 7.188 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0007781/1.841, allocations: 69.7 kB / 0.9127 GB, free: 7.113 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.00106/1.842, allocations: 1.114 MB / 0.9138 GB, free: 5.996 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.844, allocations: 0.9136 MB / 0.9147 GB, free: 5.098 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001268/1.845, allocations: 0.5644 MB / 0.9153 GB, free: 4.527 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001233/1.845, allocations: 313.2 kB / 0.9156 GB, free: 4.219 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004667/1.85, allocations: 2.176 MB / 0.9177 GB, free: 2.035 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005484/1.855, allocations: 2.822 MB / 0.9204 GB, free: 14.96 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01217/1.868, allocations: 5.417 MB / 0.9257 GB, free: 9.328 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.962e-05/1.868, allocations: 4 kB / 0.9257 GB, free: 9.324 MB / 0.67 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01712/1.885, allocations: 7.487 MB / 0.9331 GB, free: 1.891 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.091e-05/1.885, allocations: 18.8 kB / 0.9331 GB, free: 1.875 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.81e-05/1.885, allocations: 20 kB / 0.9331 GB, free: 1.855 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04657/1.931, allocations: 11.82 MB / 0.9446 GB, free: 6.051 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/1.933, allocations: 348.4 kB / 0.945 GB, free: 5.734 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02024/1.953, allocations: 8.639 MB / 0.9534 GB, free: 13.05 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003705/1.957, allocations: 195.8 kB / 0.9536 GB, free: 12.86 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006181/1.958, allocations: 151.9 kB / 0.9537 GB, free: 12.71 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006417/1.964, allocations: 2.68 MB / 0.9564 GB, free: 10.03 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005971/1.97, allocations: 2.76 MB / 0.959 GB, free: 7.016 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01227/1.983, allocations: 5.285 MB / 0.9642 GB, free: 1.508 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.338e-05/1.983, allocations: 8 kB / 0.9642 GB, free: 1.5 MB / 0.7012 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01733/2, allocations: 7.221 MB / 0.9713 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/2, allocations: 12 kB / 0.9713 GB, free: 10.33 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.402e-05/2, allocations: 20 kB / 0.9713 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02751/2.028, allocations: 7.678 MB / 0.9788 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/2.03, allocations: 389.6 kB / 0.9792 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2875/2.317, allocations: 8.146 MB / 0.9871 GB, free: 319.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003905/2.321, allocations: 191.1 kB / 0.9873 GB, free: 319.8 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006235/2.322, allocations: 148.1 kB / 0.9874 GB, free: 319.8 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.0008997/2.323, allocations: 339.5 kB / 0.9878 GB, free: 319.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008776/2.324, allocations: 263.8 kB / 0.988 GB, free: 319.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01641/2.34, allocations: 7.828 MB / 0.9957 GB, free: 316.8 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.236e-05/2.34, allocations: 37.86 kB / 0.9957 GB, free: 316.8 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/2.34, allocations: 5.625 kB / 0.9957 GB, free: 316.8 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01253/2.353, allocations: 6.892 MB / 1.002 GB, free: 314.1 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0233/2.376, allocations: 13.76 MB / 1.016 GB, free: 306.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/2.376, allocations: 0 / 1.016 GB, free: 306.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008613/2.377, allocations: 193.8 kB / 1.016 GB, free: 306.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03886/2.416, allocations: 11.25 MB / 1.027 GB, free: 296.1 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006905/2.417, allocations: 83.95 kB / 1.027 GB, free: 296 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/2.431, allocations: 8.334 MB / 1.035 GB, free: 287.8 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.1156/2.546, allocations: 42.27 MB / 1.077 GB, free: 245.7 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01841/2.565, allocations: 10.44 MB / 1.087 GB, free: 235.1 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/2.567, allocations: 0.8159 MB / 1.088 GB, free: 234.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006555/2.567, allocations: 48 kB / 1.088 GB, free: 234.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002741/2.57, allocations: 171.9 kB / 1.088 GB, free: 234.1 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000476/2.57, allocations: 198.1 kB / 1.088 GB, free: 233.9 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002809/2.571, allocations: 115.9 kB / 1.088 GB, free: 233.8 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001664/2.572, allocations: 1.273 MB / 1.089 GB, free: 232.5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.7e-07/2.572, allocations: 0 / 1.089 GB, free: 232.5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.008811/2.581, allocations: 2.929 MB / 1.092 GB, free: 229.9 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.026/2.607, allocations: 13.03 MB / 1.105 GB, free: 217 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.02455/2.632, allocations: 9.221 MB / 1.114 GB, free: 207.8 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/2.632, allocations: 4 kB / 1.114 GB, free: 207.7 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.008957/2.641, allocations: 3.222 MB / 1.117 GB, free: 204.5 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005088/2.646, allocations: 1.056 MB / 1.118 GB, free: 203.5 MB / 0.7169 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4689:9-4689:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]