Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 106.2 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 189.2 kB / 16.9 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.381/0.381, allocations: 43.49 MB / 313.6 MB, free: 8.543 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 63.91 kB / 382.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1335, allocations: 57.78 MB / 440.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3301/0.4636, allocations: 93.25 MB / 0.5209 GB, free: 4.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04886/0.5125, allocations: 21.75 MB / 0.5421 GB, free: 5.316 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005196/0.5178, allocations: 113.8 kB / 0.5422 GB, free: 5.262 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003448/0.5213, allocations: 0.8265 MB / 0.543 GB, free: 4.559 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0132/0.5345, allocations: 3.489 MB / 0.5464 GB, free: 1.934 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01714/0.5517, allocations: 5.19 MB / 0.5515 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.5637, allocations: 6.93 MB / 0.5583 GB, free: 8.32 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004207/0.568, allocations: 1.804 MB / 0.56 GB, free: 6.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.42/0.9881, allocations: 74.35 MB / 0.6326 GB, free: 67.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06059/1.049, allocations: 32.1 MB / 0.664 GB, free: 57.53 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001196/1.05, allocations: 246.6 kB / 0.6642 GB, free: 57.53 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01479/1.065, allocations: 6.098 MB / 0.6702 GB, free: 56.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002412/1.067, allocations: 1.073 MB / 0.6712 GB, free: 56.54 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002851/1.07, allocations: 1.49 MB / 0.6727 GB, free: 56.47 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/1.083, allocations: 5.447 MB / 0.678 GB, free: 54.81 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/1.083, allocations: 0 / 0.678 GB, free: 54.81 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.315e-06/1.083, allocations: 3.375 kB / 0.678 GB, free: 54.81 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001166/1.083, allocations: 0 / 0.678 GB, free: 54.81 MB / 494.1 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.009237/1.092, allocations: 3.492 MB / 0.6814 GB, free: 51.96 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/1.092, allocations: 11.89 kB / 0.6814 GB, free: 51.95 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005657/1.093, allocations: 338.9 kB / 0.6817 GB, free: 51.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/1.094, allocations: 308 kB / 0.682 GB, free: 51.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002569/1.096, allocations: 1.574 MB / 0.6836 GB, free: 50.19 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/1.096, allocations: 219.8 kB / 0.6838 GB, free: 50.03 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002727/1.097, allocations: 193.4 kB / 0.684 GB, free: 49.9 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004602/1.101, allocations: 3.29 MB / 0.6872 GB, free: 47.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.425e-05/1.101, allocations: 9.969 kB / 0.6872 GB, free: 47.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002266/1.102, allocations: 80.83 kB / 0.6873 GB, free: 47.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000257/1.102, allocations: 251.3 kB / 0.6875 GB, free: 47.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004537/1.106, allocations: 3.103 MB / 0.6905 GB, free: 45.18 MB / 494.1 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.01807/1.125, allocations: 13.83 MB / 0.704 GB, free: 33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003573/1.128, allocations: 2.198 MB / 0.7062 GB, free: 31.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001607/1.13, allocations: 1.18 MB / 0.7073 GB, free: 30.85 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00747/1.137, allocations: 5.616 MB / 0.7128 GB, free: 25.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/1.137, allocations: 51.88 kB / 0.7129 GB, free: 25.16 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001077/1.138, allocations: 213.9 kB / 0.7131 GB, free: 24.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 4.037e-06/1.138, allocations: 0 / 0.7131 GB, free: 24.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5398/1.678, allocations: 56.4 MB / 0.7681 GB, free: 472 kB / 0.5137 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1968/1.875, allocations: 46.44 MB / 0.8135 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003506/1.879, allocations: 1.866 MB / 0.8153 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0008492/1.88, allocations: 69.7 kB / 0.8154 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009928/1.881, allocations: 1.086 MB / 0.8164 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001543/1.882, allocations: 0.8717 MB / 0.8173 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001992/1.884, allocations: 0.5682 MB / 0.8179 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001351/1.884, allocations: 313.1 kB / 0.8182 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004481/1.889, allocations: 2.184 MB / 0.8203 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004898/1.894, allocations: 2.832 MB / 0.823 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01246/1.906, allocations: 5.465 MB / 0.8284 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.224e-05/1.906, allocations: 11.19 kB / 0.8284 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01798/1.924, allocations: 7.514 MB / 0.8357 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/1.924, allocations: 16.06 kB / 0.8357 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-05/1.924, allocations: 16 kB / 0.8358 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3249/2.249, allocations: 12.28 MB / 0.8478 GB, free: 253.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/2.251, allocations: 349.6 kB / 0.8481 GB, free: 253.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01691/2.268, allocations: 8.643 MB / 0.8565 GB, free: 251.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004238/2.272, allocations: 264 kB / 0.8568 GB, free: 251.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007616/2.273, allocations: 154.9 kB / 0.8569 GB, free: 251.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004938/2.278, allocations: 2.684 MB / 0.8596 GB, free: 250.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003912/2.282, allocations: 2.758 MB / 0.8622 GB, free: 249.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01041/2.292, allocations: 5.359 MB / 0.8675 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.082e-05/2.292, allocations: 6.062 kB / 0.8675 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01788/2.31, allocations: 7.247 MB / 0.8746 GB, free: 244.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/2.31, allocations: 16.66 kB / 0.8746 GB, free: 244.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.305e-05/2.31, allocations: 21.59 kB / 0.8746 GB, free: 244.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02916/2.34, allocations: 7.756 MB / 0.8822 GB, free: 243.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002291/2.342, allocations: 399 kB / 0.8826 GB, free: 243.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01993/2.362, allocations: 8.16 MB / 0.8905 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004302/2.366, allocations: 255.9 kB / 0.8908 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008246/2.367, allocations: 152.4 kB / 0.8909 GB, free: 240 MB / 0.5919 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.001436/2.369, allocations: 337.1 kB / 0.8912 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001162/2.37, allocations: 246.5 kB / 0.8915 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01856/2.388, allocations: 8.092 MB / 0.8994 GB, free: 236.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.829e-05/2.388, allocations: 31.02 kB / 0.8994 GB, free: 236.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/2.388, allocations: 0 / 0.8994 GB, free: 236.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01533/2.404, allocations: 7.092 MB / 0.9063 GB, free: 234 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02836/2.432, allocations: 13.83 MB / 0.9198 GB, free: 221.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/2.432, allocations: 0 / 0.9198 GB, free: 221.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009301/2.433, allocations: 195.8 kB / 0.92 GB, free: 221 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04354/2.477, allocations: 11.69 MB / 0.9314 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/2.478, allocations: 83.95 kB / 0.9315 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01654/2.494, allocations: 8.369 MB / 0.9397 GB, free: 200.9 MB / 0.5919 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.1387/2.633, allocations: 46.15 MB / 0.9848 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02165/2.655, allocations: 10.69 MB / 0.9952 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002511/2.657, allocations: 0.8175 MB / 0.996 GB, free: 142.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/2.659, allocations: 52.94 kB / 0.996 GB, free: 142.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003639/2.662, allocations: 242.8 kB / 0.9963 GB, free: 142.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006336/2.663, allocations: 202.1 kB / 0.9965 GB, free: 142.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004313/2.663, allocations: 104 kB / 0.9966 GB, free: 142.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001986/2.665, allocations: 1.277 MB / 0.9978 GB, free: 141 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.71e-07/2.665, allocations: 0 / 0.9978 GB, free: 141 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01047/2.676, allocations: 2.904 MB / 1.001 GB, free: 138.3 MB / 0.5919 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 (95): * Single equations (assignments): 89 * 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.03133/2.707, allocations: 13.25 MB / 1.014 GB, free: 125.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.03145/2.739, allocations: 10.37 MB / 1.024 GB, free: 114.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/2.739, allocations: 0 / 1.024 GB, free: 114.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01005/2.749, allocations: 3.245 MB / 1.027 GB, free: 111.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007377/2.756, allocations: 1.031 MB / 1.028 GB, free: 110.4 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4638:9-4638:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]