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.0009928/0.0009926, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 186.1 kB / 16.92 MB, free: 6.918 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.4 MB / 223.1 MB, free: 5.754 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.3347/0.3347, allocations: 43.58 MB / 315 MB, free: 8.688 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.0005006/0.0005006, allocations: 16 kB / 384.7 MB, free: 7.551 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1211, allocations: 58.85 MB / 443.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.345/0.4661, allocations: 93.82 MB / 0.5248 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03702/0.5032, allocations: 22.3 MB / 0.5465 GB, free: 4.328 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00419/0.5074, allocations: 110.2 kB / 0.5466 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003124/0.5106, allocations: 0.8206 MB / 0.5474 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01096/0.5216, allocations: 3.509 MB / 0.5509 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01439/0.536, allocations: 4.911 MB / 0.5557 GB, free: 13.2 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01248/0.5485, allocations: 10.56 MB / 0.566 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003345/0.5519, allocations: 1.545 MB / 0.5675 GB, free: 1.051 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.439/0.9909, allocations: 73.3 MB / 0.6391 GB, free: 61.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06368/1.055, allocations: 31.93 MB / 0.6702 GB, free: 51.35 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001493/1.056, allocations: 123.7 kB / 0.6704 GB, free: 51.35 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01454/1.071, allocations: 5.954 MB / 0.6762 GB, free: 50.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0021/1.073, allocations: 0.949 MB / 0.6771 GB, free: 50.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002292/1.075, allocations: 1.383 MB / 0.6785 GB, free: 50.31 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01175/1.087, allocations: 5.288 MB / 0.6836 GB, free: 48.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/1.087, allocations: 0 / 0.6836 GB, free: 48.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/1.087, allocations: 0 / 0.6836 GB, free: 48.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.95e-05/1.087, allocations: 0 / 0.6836 GB, free: 48.57 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.007643/1.095, allocations: 2.986 MB / 0.6865 GB, free: 46.81 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.022e-05/1.095, allocations: 11.98 kB / 0.6865 GB, free: 46.81 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007832/1.096, allocations: 341.9 kB / 0.6869 GB, free: 46.7 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008947/1.097, allocations: 310.8 kB / 0.6872 GB, free: 46.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002241/1.099, allocations: 1.567 MB / 0.6887 GB, free: 45.79 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/1.099, allocations: 221.5 kB / 0.6889 GB, free: 45.71 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002699/1.099, allocations: 189.7 kB / 0.6891 GB, free: 45.62 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004175/1.103, allocations: 3.294 MB / 0.6923 GB, free: 43.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5e-05/1.103, allocations: 3.609 kB / 0.6923 GB, free: 43.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/1.104, allocations: 85 kB / 0.6924 GB, free: 43.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/1.104, allocations: 253.1 kB / 0.6926 GB, free: 42.96 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004236/1.108, allocations: 3.109 MB / 0.6957 GB, free: 40.89 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.01586/1.124, allocations: 13.89 MB / 0.7092 GB, free: 28.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003362/1.127, allocations: 2.198 MB / 0.7114 GB, free: 27.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/1.129, allocations: 1.188 MB / 0.7125 GB, free: 26.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006939/1.136, allocations: 5.635 MB / 0.718 GB, free: 21.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/1.136, allocations: 52.94 kB / 0.7181 GB, free: 21.4 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009711/1.137, allocations: 234.8 kB / 0.7183 GB, free: 21.19 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 3.507e-06/1.137, allocations: 3.938 kB / 0.7183 GB, free: 21.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5019/1.639, allocations: 55.58 MB / 0.7726 GB, free: 14.91 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.1561/1.795, allocations: 46.68 MB / 0.8182 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003913/1.799, allocations: 1.862 MB / 0.82 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009788/1.8, allocations: 73.7 kB / 0.8201 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001296/1.801, allocations: 1.086 MB / 0.8211 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001437/1.803, allocations: 0.8709 MB / 0.822 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008065/1.804, allocations: 235.6 kB / 0.8222 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001646/1.804, allocations: 305.1 kB / 0.8225 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005184/1.809, allocations: 2.176 MB / 0.8246 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005308/1.814, allocations: 2.839 MB / 0.8274 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01225/1.827, allocations: 5.487 MB / 0.8328 GB, free: 352 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.311e-05/1.827, allocations: 4 kB / 0.8328 GB, free: 348 kB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01768/1.844, allocations: 7.55 MB / 0.8401 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005622/1.845, allocations: 0.6402 MB / 0.8408 GB, free: 7.949 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.395e-05/1.845, allocations: 20 kB / 0.8408 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2727/2.118, allocations: 12.44 MB / 0.8529 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/2.119, allocations: 350.3 kB / 0.8533 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/2.136, allocations: 8.7 MB / 0.8618 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003646/2.14, allocations: 268.8 kB / 0.862 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005811/2.14, allocations: 159.6 kB / 0.8622 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/2.14, allocations: 3.688 kB / 0.8622 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01267/2.153, allocations: 7.064 MB / 0.8691 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.013e-05/2.153, allocations: 16.91 kB / 0.8691 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02626/2.179, allocations: 7.971 MB / 0.8769 GB, free: 246.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001948/2.181, allocations: 401.1 kB / 0.8772 GB, free: 246.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01732/2.198, allocations: 8.212 MB / 0.8853 GB, free: 243.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003531/2.202, allocations: 264.3 kB / 0.8855 GB, free: 243 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006514/2.203, allocations: 146.8 kB / 0.8857 GB, free: 243 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.002008/2.205, allocations: 0.7809 MB / 0.8864 GB, free: 242.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007381/2.206, allocations: 248.3 kB / 0.8867 GB, free: 242.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/2.222, allocations: 7.909 MB / 0.8944 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.171e-05/2.222, allocations: 36.77 kB / 0.8944 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/2.222, allocations: 3.5 kB / 0.8944 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01197/2.234, allocations: 6.969 MB / 0.9012 GB, free: 237.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02576/2.259, allocations: 13.85 MB / 0.9148 GB, free: 227.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/2.259, allocations: 2.312 kB / 0.9148 GB, free: 227.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008913/2.26, allocations: 191.8 kB / 0.9149 GB, free: 227 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0434/2.304, allocations: 11.98 MB / 0.9266 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000704/2.304, allocations: 83.95 kB / 0.9267 GB, free: 215 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01492/2.319, allocations: 8.421 MB / 0.9349 GB, free: 206.6 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.1272/2.447, allocations: 46.69 MB / 0.9805 GB, free: 159.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01874/2.465, allocations: 10.5 MB / 0.9908 GB, free: 149 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/2.467, allocations: 0.8129 MB / 0.9916 GB, free: 148.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006832/2.468, allocations: 55.98 kB / 0.9916 GB, free: 148.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002991/2.471, allocations: 249.5 kB / 0.9919 GB, free: 147.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004505/2.471, allocations: 202.1 kB / 0.9921 GB, free: 147.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003006/2.472, allocations: 108 kB / 0.9922 GB, free: 147.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001751/2.473, allocations: 1.277 MB / 0.9934 GB, free: 146.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.473, allocations: 0 / 0.9934 GB, free: 146.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008497/2.482, allocations: 2.897 MB / 0.9962 GB, free: 143.6 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.02656/2.508, allocations: 13.07 MB / 1.009 GB, free: 130.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02395/2.532, allocations: 9.164 MB / 1.018 GB, free: 121.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/2.533, allocations: 0 / 1.018 GB, free: 121.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008676/2.541, allocations: 3.232 MB / 1.021 GB, free: 118.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005939/2.547, allocations: 1.002 MB / 1.022 GB, free: 117.1 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]