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.001264/0.001264, allocations: 109.1 kB / 16.41 MB, free: 6.445 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.001289/0.001289, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.388/1.388, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2199/0.2199, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 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.002773/0.002773, allocations: 67.91 kB / 441.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1193, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3374/0.4567, allocations: 90.18 MB / 0.5755 GB, free: 7.508 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03564/0.4924, allocations: 21.3 MB / 0.5963 GB, free: 7.773 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004751/0.4972, allocations: 86 kB / 0.5964 GB, free: 7.738 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004121/0.5015, allocations: 0.9392 MB / 0.5973 GB, free: 6.922 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.5132, allocations: 3.726 MB / 0.6009 GB, free: 4.055 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01322/0.5264, allocations: 5.621 MB / 0.6064 GB, free: 16 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.009867/0.5363, allocations: 6.899 MB / 0.6132 GB, free: 9.57 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002989/0.5393, allocations: 1.805 MB / 0.6149 GB, free: 7.75 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1796/0.719, allocations: 74.8 MB / 0.688 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.07777/0.7968, allocations: 31.9 MB / 0.7191 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001193/0.798, allocations: 248 kB / 0.7194 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01586/0.8139, allocations: 6.085 MB / 0.7253 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001924/0.8159, allocations: 1.067 MB / 0.7264 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002548/0.8184, allocations: 1.478 MB / 0.7278 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01106/0.8295, allocations: 5.525 MB / 0.7332 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.8296, allocations: 3.938 kB / 0.7332 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8296, allocations: 0 / 0.7332 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001015/0.8297, allocations: 0 / 0.7332 GB, free: 13.33 MB / 0.5762 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.009879/0.8396, allocations: 3.58 MB / 0.7367 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.8396, allocations: 11.89 kB / 0.7367 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000626/0.8402, allocations: 347.2 kB / 0.737 GB, free: 9.316 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/0.8414, allocations: 322.9 kB / 0.7373 GB, free: 9 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.845, allocations: 1.681 MB / 0.739 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/0.8452, allocations: 215.1 kB / 0.7392 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004197/0.8457, allocations: 199.8 kB / 0.7394 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006481/0.8521, allocations: 3.294 MB / 0.7426 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.289e-05/0.8522, allocations: 3.938 kB / 0.7426 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/0.8525, allocations: 83.95 kB / 0.7427 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00033/0.8528, allocations: 251.7 kB / 0.7429 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005781/0.8586, allocations: 3.095 MB / 0.7459 GB, free: 15.99 MB / 0.5919 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.0206/0.8792, allocations: 13.87 MB / 0.7595 GB, free: 1.191 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2197/1.099, allocations: 2.186 MB / 0.7616 GB, free: 225.1 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002141/1.101, allocations: 1.182 MB / 0.7628 GB, free: 225.1 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008508/1.11, allocations: 5.618 MB / 0.7683 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/1.11, allocations: 46.44 kB / 0.7683 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006719/1.11, allocations: 169.7 kB / 0.7685 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=158): time 5.63e-06/1.11, allocations: 3.969 kB / 0.7685 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=259): time 0.4944/1.605, allocations: 56.34 MB / 0.8235 GB, free: 183.2 MB / 0.5919 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1296/1.735, allocations: 46.44 MB / 0.8688 GB, free: 136.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/1.737, allocations: 1.867 MB / 0.8707 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005366/1.737, allocations: 65.7 kB / 0.8707 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005119/1.738, allocations: 1.119 MB / 0.8718 GB, free: 133.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006727/1.738, allocations: 0.9097 MB / 0.8727 GB, free: 132.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009738/1.739, allocations: 0.5722 MB / 0.8733 GB, free: 131.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.606e-05/1.739, allocations: 301.1 kB / 0.8736 GB, free: 131.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003388/1.743, allocations: 2.184 MB / 0.8757 GB, free: 129.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003721/1.747, allocations: 2.814 MB / 0.8784 GB, free: 126.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009627/1.756, allocations: 5.457 MB / 0.8838 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.726e-05/1.756, allocations: 4 kB / 0.8838 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01376/1.77, allocations: 7.519 MB / 0.8911 GB, free: 113 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/1.77, allocations: 12 kB / 0.8911 GB, free: 113 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/1.77, allocations: 20 kB / 0.8911 GB, free: 113 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04335/1.814, allocations: 12.26 MB / 0.9031 GB, free: 100.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/1.815, allocations: 347.4 kB / 0.9034 GB, free: 100.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0156/1.831, allocations: 8.643 MB / 0.9119 GB, free: 91.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/1.834, allocations: 203.8 kB / 0.9121 GB, free: 91.51 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006076/1.835, allocations: 151.9 kB / 0.9122 GB, free: 91.36 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0045/1.839, allocations: 2.676 MB / 0.9148 GB, free: 88.68 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003828/1.843, allocations: 2.759 MB / 0.9175 GB, free: 85.65 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009704/1.853, allocations: 5.336 MB / 0.9227 GB, free: 80.02 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.818e-05/1.853, allocations: 4 kB / 0.9227 GB, free: 80.01 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01365/1.867, allocations: 7.245 MB / 0.9298 GB, free: 72.71 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/1.867, allocations: 19.94 kB / 0.9298 GB, free: 72.69 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/1.867, allocations: 16 kB / 0.9299 GB, free: 72.68 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02407/1.891, allocations: 7.743 MB / 0.9374 GB, free: 64.93 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/1.893, allocations: 387.4 kB / 0.9378 GB, free: 64.55 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01459/1.907, allocations: 8.172 MB / 0.9458 GB, free: 56.31 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/1.911, allocations: 199.8 kB / 0.946 GB, free: 56.12 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005143/1.912, allocations: 143.9 kB / 0.9461 GB, free: 55.98 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.0007975/1.912, allocations: 340.1 kB / 0.9464 GB, free: 55.64 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007104/1.913, allocations: 262.3 kB / 0.9467 GB, free: 55.38 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01427/1.927, allocations: 7.858 MB / 0.9543 GB, free: 47.46 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.454e-05/1.927, allocations: 32 kB / 0.9544 GB, free: 47.43 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/1.927, allocations: 0 / 0.9544 GB, free: 47.43 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01228/1.94, allocations: 6.915 MB / 0.9611 GB, free: 40.41 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02563/1.965, allocations: 13.78 MB / 0.9746 GB, free: 26.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.86e-05/1.965, allocations: 0 / 0.9746 GB, free: 26.54 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009915/1.966, allocations: 195.8 kB / 0.9748 GB, free: 26.35 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04216/2.009, allocations: 11.67 MB / 0.9862 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009023/2.01, allocations: 83.95 kB / 0.9862 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01447/2.024, allocations: 8.365 MB / 0.9944 GB, free: 6.164 MB / 0.5919 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.3764/2.401, allocations: 43.23 MB / 1.037 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01805/2.419, allocations: 10.45 MB / 1.047 GB, free: 196 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001852/2.421, allocations: 0.8224 MB / 1.048 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006195/2.421, allocations: 55.94 kB / 1.048 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002649/2.424, allocations: 172.8 kB / 1.048 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000454/2.424, allocations: 208.9 kB / 1.048 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/2.425, allocations: 112 kB / 1.048 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001437/2.426, allocations: 1.273 MB / 1.049 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.11e-07/2.426, allocations: 0 / 1.049 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007403/2.433, allocations: 2.916 MB / 1.052 GB, free: 190.7 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.02573/2.459, allocations: 13.04 MB / 1.065 GB, free: 177.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02363/2.483, allocations: 9.226 MB / 1.074 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/2.483, allocations: 4 kB / 1.074 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008718/2.492, allocations: 3.215 MB / 1.077 GB, free: 165.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005469/2.497, allocations: 1.051 MB / 1.078 GB, free: 164.4 MB / 0.5919 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]