Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001251/0.001256, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2513/0.2513, allocations: 46.11 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002221/0.002221, allocations: 76.83 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1466, allocations: 62.46 MB / 480.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3709/0.5175, allocations: 90.44 MB / 0.5573 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03593/0.5535, allocations: 21.35 MB / 0.5781 GB, free: 2.898 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003118/0.5567, allocations: 87.44 kB / 0.5782 GB, free: 2.812 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002971/0.5597, allocations: 0.9395 MB / 0.5791 GB, free: 1.867 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.5701, allocations: 3.744 MB / 0.5828 GB, free: 14.1 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01456/0.5847, allocations: 5.665 MB / 0.5883 GB, free: 8.438 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.5958, allocations: 6.936 MB / 0.5951 GB, free: 1.492 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003618/0.5994, allocations: 1.816 MB / 0.5969 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1899/0.7893, allocations: 74.89 MB / 0.67 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.07922/0.8686, allocations: 31.94 MB / 0.7012 GB, free: 3.586 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.8699, allocations: 244 kB / 0.7014 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2894/1.159, allocations: 6.101 MB / 0.7074 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002148/1.161, allocations: 1.079 MB / 0.7084 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003231/1.165, allocations: 1.486 MB / 0.7099 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01149/1.176, allocations: 5.453 MB / 0.7152 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/1.176, allocations: 0 / 0.7152 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.144e-06/1.176, allocations: 1.062 kB / 0.7152 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001104/1.176, allocations: 0 / 0.7152 GB, free: 109.4 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.01097/1.187, allocations: 3.487 MB / 0.7186 GB, free: 108 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/1.187, allocations: 10.59 kB / 0.7186 GB, free: 108 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006972/1.188, allocations: 338.8 kB / 0.7189 GB, free: 108 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/1.189, allocations: 316 kB / 0.7192 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/1.192, allocations: 1.568 MB / 0.7208 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/1.192, allocations: 214.5 kB / 0.721 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003447/1.193, allocations: 189.1 kB / 0.7212 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005221/1.198, allocations: 3.298 MB / 0.7244 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/1.198, allocations: 9.5 kB / 0.7244 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/1.198, allocations: 83.81 kB / 0.7245 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003014/1.199, allocations: 253.6 kB / 0.7247 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005159/1.204, allocations: 3.101 MB / 0.7277 GB, free: 106.9 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.01805/1.222, allocations: 13.89 MB / 0.7413 GB, free: 99.88 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003633/1.225, allocations: 2.191 MB / 0.7435 GB, free: 99.84 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/1.227, allocations: 1.179 MB / 0.7446 GB, free: 99.82 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007382/1.234, allocations: 5.625 MB / 0.7501 GB, free: 96.55 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/1.234, allocations: 51.22 kB / 0.7501 GB, free: 96.52 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009587/1.235, allocations: 152.8 kB / 0.7503 GB, free: 96.42 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 5.44e-06/1.235, allocations: 0 / 0.7503 GB, free: 96.42 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5085/1.744, allocations: 55.38 MB / 0.8044 GB, free: 44.88 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.1332/1.877, allocations: 45.56 MB / 0.8489 GB, free: 14.93 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004493/1.882, allocations: 1.866 MB / 0.8507 GB, free: 13.02 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009629/1.883, allocations: 65.7 kB / 0.8507 GB, free: 12.95 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001359/1.884, allocations: 1.094 MB / 0.8518 GB, free: 11.85 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001951/1.886, allocations: 0.8649 MB / 0.8527 GB, free: 10.99 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003328/1.889, allocations: 0.571 MB / 0.8532 GB, free: 10.41 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001651/1.89, allocations: 309.2 kB / 0.8535 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005361/1.895, allocations: 2.184 MB / 0.8556 GB, free: 7.922 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005863/1.901, allocations: 2.815 MB / 0.8584 GB, free: 4.855 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/1.914, allocations: 5.411 MB / 0.8637 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.577e-05/1.914, allocations: 4 kB / 0.8637 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01925/1.933, allocations: 7.479 MB / 0.871 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/1.933, allocations: 12 kB / 0.871 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.722e-05/1.933, allocations: 20 kB / 0.871 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04959/1.983, allocations: 11.87 MB / 0.8826 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/1.985, allocations: 347.4 kB / 0.8829 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02108/2.006, allocations: 8.615 MB / 0.8913 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/2.01, allocations: 195.8 kB / 0.8915 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000734/2.011, allocations: 151.9 kB / 0.8917 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00617/2.017, allocations: 2.68 MB / 0.8943 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005324/2.022, allocations: 2.757 MB / 0.897 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01234/2.034, allocations: 5.292 MB / 0.9022 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.21e-05/2.035, allocations: 8 kB / 0.9022 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.0185/2.053, allocations: 7.204 MB / 0.9092 GB, free: 244 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.752e-05/2.053, allocations: 16 kB / 0.9092 GB, free: 228 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.417e-05/2.053, allocations: 20.09 kB / 0.9092 GB, free: 208 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02914/2.082, allocations: 7.692 MB / 0.9167 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/2.085, allocations: 391.8 kB / 0.9171 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2392/2.324, allocations: 8.148 MB / 0.9251 GB, free: 261.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00418/2.328, allocations: 195.3 kB / 0.9253 GB, free: 261.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007216/2.329, allocations: 145 kB / 0.9254 GB, free: 261.2 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.000886/2.33, allocations: 341.3 kB / 0.9257 GB, free: 261 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009123/2.331, allocations: 244.4 kB / 0.926 GB, free: 261 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01784/2.348, allocations: 7.831 MB / 0.9336 GB, free: 260 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.296e-05/2.349, allocations: 31.23 kB / 0.9336 GB, free: 260 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/2.349, allocations: 5 kB / 0.9336 GB, free: 260 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0163/2.365, allocations: 6.895 MB / 0.9404 GB, free: 257.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02617/2.391, allocations: 13.76 MB / 0.9538 GB, free: 252 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.025e-05/2.391, allocations: 10.94 kB / 0.9538 GB, free: 252 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009202/2.392, allocations: 186.3 kB / 0.954 GB, free: 252 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04071/2.433, allocations: 11.28 MB / 0.965 GB, free: 247.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007382/2.434, allocations: 85.83 kB / 0.9651 GB, free: 247.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01604/2.45, allocations: 8.331 MB / 0.9732 GB, free: 239.3 MB / 0.6075 GB Warning: There are tearing variables with annotation attribute '__OpenModelica_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.1263/2.576, allocations: 42.29 MB / 1.015 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01947/2.596, allocations: 10.42 MB / 1.025 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/2.598, allocations: 0.7999 MB / 1.025 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/2.599, allocations: 55.94 kB / 1.026 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003248/2.602, allocations: 167.9 kB / 1.026 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005686/2.603, allocations: 202.1 kB / 1.026 GB, free: 185.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003681/2.603, allocations: 111.9 kB / 1.026 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001856/2.605, allocations: 1.277 MB / 1.027 GB, free: 184 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/2.605, allocations: 0 / 1.027 GB, free: 184 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01208/2.617, allocations: 2.902 MB / 1.03 GB, free: 181.3 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 (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.03045/2.647, allocations: 12.99 MB / 1.043 GB, free: 168.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02968/2.677, allocations: 10.31 MB / 1.053 GB, free: 158 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/2.677, allocations: 4 kB / 1.053 GB, free: 158 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009682/2.687, allocations: 3.212 MB / 1.056 GB, free: 154.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007182/2.694, allocations: 1.061 MB / 1.057 GB, free: 153.8 MB / 0.6075 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]