Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_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.0007644/0.0007646, allocations: 91.72 kB / 17.35 MB, free: 6.031 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.0009743/0.0009744, allocations: 177.4 kB / 18.26 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.3 MB / 242.3 MB, free: 172 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1908/0.1908, allocations: 44.25 MB / 337.7 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003089, allocations: 8 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1106, allocations: 61.92 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2976/0.4083, allocations: 93.79 MB / 0.5529 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03132/0.4397, allocations: 22.31 MB / 0.5747 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003383/0.4431, allocations: 107.1 kB / 0.5748 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002278/0.4454, allocations: 0.8237 MB / 0.5756 GB, free: 12.87 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00908/0.4545, allocations: 3.505 MB / 0.579 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01227/0.4668, allocations: 4.945 MB / 0.5838 GB, free: 4.414 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01211/0.4789, allocations: 10.56 MB / 0.5941 GB, free: 9.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003276/0.4822, allocations: 1.545 MB / 0.5956 GB, free: 8.273 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1486/0.6308, allocations: 73.37 MB / 0.6673 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06018/0.6911, allocations: 31.92 MB / 0.6985 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009949/0.6921, allocations: 120 kB / 0.6986 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01293/0.7051, allocations: 5.963 MB / 0.7044 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001868/0.707, allocations: 0.958 MB / 0.7053 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003057/0.71, allocations: 1.382 MB / 0.7067 GB, free: 5.273 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.2643/0.9743, allocations: 5.279 MB / 0.7118 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.9744, allocations: 0.625 kB / 0.7118 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9744, allocations: 0.5 kB / 0.7118 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001693/0.9746, allocations: 0 / 0.7118 GB, free: 117.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.009238/0.9838, allocations: 2.986 MB / 0.7148 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/0.9839, allocations: 13.75 kB / 0.7148 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001227/0.9851, allocations: 343.9 kB / 0.7151 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00132/0.9865, allocations: 312.6 kB / 0.7154 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/0.9895, allocations: 1.574 MB / 0.7169 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.9898, allocations: 217.7 kB / 0.7171 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003314/0.9901, allocations: 188.5 kB / 0.7173 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005448/0.9956, allocations: 3.292 MB / 0.7205 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.832e-05/0.9956, allocations: 5.812 kB / 0.7205 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/0.9959, allocations: 85.03 kB / 0.7206 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003384/0.9962, allocations: 254.4 kB / 0.7209 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005285/1.002, allocations: 3.107 MB / 0.7239 GB, free: 115.3 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.01666/1.018, allocations: 13.86 MB / 0.7374 GB, free: 108.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003601/1.022, allocations: 2.21 MB / 0.7396 GB, free: 108.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/1.024, allocations: 1.19 MB / 0.7408 GB, free: 108.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006736/1.03, allocations: 5.632 MB / 0.7463 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/1.03, allocations: 50.91 kB / 0.7463 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007368/1.031, allocations: 233.1 kB / 0.7465 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 3.327e-06/1.031, allocations: 0 / 0.7465 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5133/1.544, allocations: 55.59 MB / 0.8008 GB, free: 62.48 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.1263/1.671, allocations: 46.68 MB / 0.8464 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/1.673, allocations: 1.862 MB / 0.8482 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005336/1.673, allocations: 73.7 kB / 0.8483 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005021/1.674, allocations: 1.085 MB / 0.8494 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005776/1.674, allocations: 0.8798 MB / 0.8502 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003503/1.675, allocations: 223.5 kB / 0.8504 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.043e-05/1.675, allocations: 301.1 kB / 0.8507 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003368/1.678, allocations: 2.184 MB / 0.8528 GB, free: 9.207 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003521/1.682, allocations: 2.836 MB / 0.8556 GB, free: 6.117 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008993/1.691, allocations: 5.489 MB / 0.861 GB, free: 416 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/1.691, allocations: 4 kB / 0.861 GB, free: 412 kB / 0.5294 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01468/1.705, allocations: 7.555 MB / 0.8684 GB, free: 8.906 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004312/1.706, allocations: 0.6373 MB / 0.869 GB, free: 8.012 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.848e-05/1.706, allocations: 20 kB / 0.869 GB, free: 7.992 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04756/1.754, allocations: 12.45 MB / 0.8812 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/1.755, allocations: 349.6 kB / 0.8815 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/1.772, allocations: 8.705 MB / 0.89 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003711/1.776, allocations: 274.9 kB / 0.8902 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003891/1.776, allocations: 155.9 kB / 0.8904 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/1.776, allocations: 4 kB / 0.8904 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01455/1.791, allocations: 7.058 MB / 0.8973 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.769e-05/1.791, allocations: 16 kB / 0.8973 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02684/1.818, allocations: 7.984 MB / 0.9051 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/1.82, allocations: 391.4 kB / 0.9055 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01628/1.836, allocations: 8.204 MB / 0.9135 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003619/1.84, allocations: 271.8 kB / 0.9138 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003671/1.84, allocations: 147.9 kB / 0.9139 GB, free: 10.08 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.001528/1.841, allocations: 0.7751 MB / 0.9146 GB, free: 9.32 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005186/1.842, allocations: 248.9 kB / 0.9149 GB, free: 9.074 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01605/1.858, allocations: 7.917 MB / 0.9226 GB, free: 1.152 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.768e-05/1.858, allocations: 28 kB / 0.9226 GB, free: 1.125 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/1.858, allocations: 0 / 0.9226 GB, free: 1.125 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2437/2.102, allocations: 6.973 MB / 0.9295 GB, free: 256 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02522/2.127, allocations: 13.85 MB / 0.943 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/2.127, allocations: 3.969 kB / 0.943 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009048/2.128, allocations: 189.9 kB / 0.9432 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04291/2.171, allocations: 11.99 MB / 0.9549 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005777/2.172, allocations: 83.95 kB / 0.955 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01369/2.185, allocations: 8.415 MB / 0.9632 GB, free: 239.5 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.1219/2.307, allocations: 46.67 MB / 1.009 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01705/2.324, allocations: 10.51 MB / 1.019 GB, free: 182.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/2.326, allocations: 0.8092 MB / 1.02 GB, free: 181.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004297/2.326, allocations: 52 kB / 1.02 GB, free: 181.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002607/2.329, allocations: 251.5 kB / 1.02 GB, free: 181.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004638/2.329, allocations: 198.1 kB / 1.02 GB, free: 181.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002512/2.33, allocations: 115.9 kB / 1.02 GB, free: 181.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001606/2.331, allocations: 1.277 MB / 1.022 GB, free: 179.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/2.331, allocations: 3.938 kB / 1.022 GB, free: 179.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008112/2.339, allocations: 2.9 MB / 1.024 GB, free: 177.1 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 (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.02449/2.364, allocations: 13.06 MB / 1.037 GB, free: 164 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02218/2.386, allocations: 9.166 MB / 1.046 GB, free: 154.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/2.386, allocations: 0 / 1.046 GB, free: 154.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008462/2.395, allocations: 3.231 MB / 1.049 GB, free: 151.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005437/2.4, allocations: 0.99 MB / 1.05 GB, free: 150.6 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4560:9-4560:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]