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.0008889/0.0008889, allocations: 97.17 kB / 16.99 MB, free: 6.402 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.000864/0.0008641, allocations: 178.2 kB / 17.88 MB, free: 5.957 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.373/1.373, allocations: 223.2 MB / 241.8 MB, free: 392 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.2021/0.2021, allocations: 44.23 MB / 337.1 MB, free: 2.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003419, allocations: 11.09 kB / 409.6 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1361, allocations: 61.91 MB / 471.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3562/0.4923, allocations: 67.57 MB / 0.5265 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03045/0.5229, allocations: 20.68 MB / 0.5467 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003705/0.5266, allocations: 106.6 kB / 0.5468 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002877/0.5295, allocations: 0.918 MB / 0.5477 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009824/0.5394, allocations: 2.697 MB / 0.5503 GB, free: 456 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02037/0.5597, allocations: 5.446 MB / 0.5556 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.5708, allocations: 3.775 MB / 0.5593 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005538/0.5764, allocations: 1.5 MB / 0.5608 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2154/0.7918, allocations: 123.8 MB / 0.6817 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3948/1.187, allocations: 53.32 MB / 0.7338 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000834/1.188, allocations: 124 kB / 0.7339 GB, free: 141 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01419/1.202, allocations: 8.013 MB / 0.7417 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001805/1.204, allocations: 0.8527 MB / 0.7425 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001279/1.205, allocations: 0.5311 MB / 0.7431 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.006913/1.212, allocations: 3.8 MB / 0.7468 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/1.212, allocations: 4 kB / 0.7468 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.689e-06/1.212, allocations: 0 / 0.7468 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.831e-05/1.212, allocations: 0 / 0.7468 GB, free: 131.9 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.00733/1.219, allocations: 2.998 MB / 0.7497 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/1.219, allocations: 12.02 kB / 0.7497 GB, free: 129 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008194/1.22, allocations: 342.5 kB / 0.75 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000928/1.221, allocations: 310.6 kB / 0.7503 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/1.224, allocations: 1.517 MB / 0.7518 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/1.224, allocations: 227.5 kB / 0.752 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002706/1.224, allocations: 184.7 kB / 0.7522 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004615/1.229, allocations: 3.259 MB / 0.7554 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.279e-05/1.229, allocations: 3.469 kB / 0.7554 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/1.229, allocations: 83.12 kB / 0.7555 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000309/1.23, allocations: 254.7 kB / 0.7557 GB, free: 124.4 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004955/1.235, allocations: 3.098 MB / 0.7587 GB, free: 122.4 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.01784/1.253, allocations: 13.99 MB / 0.7724 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003521/1.256, allocations: 2.201 MB / 0.7746 GB, free: 108.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007597/1.264, allocations: 5.706 MB / 0.7801 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/1.264, allocations: 58.5 kB / 0.7802 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009587/1.265, allocations: 230.5 kB / 0.7804 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=160): time 6.452e-06/1.265, allocations: 0 / 0.7804 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.4686/1.733, allocations: 57.04 MB / 0.8361 GB, free: 51.7 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.2011/1.935, allocations: 60.22 MB / 0.8949 GB, free: 8.781 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/1.937, allocations: 1.838 MB / 0.8967 GB, free: 6.902 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005911/1.938, allocations: 73.7 kB / 0.8968 GB, free: 6.824 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007255/1.939, allocations: 1.084 MB / 0.8978 GB, free: 5.734 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009634/1.94, allocations: 0.8868 MB / 0.8987 GB, free: 4.859 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/1.94, allocations: 56 kB / 0.8988 GB, free: 4.805 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001747/1.94, allocations: 423.8 kB / 0.8992 GB, free: 4.387 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003914/1.944, allocations: 2.176 MB / 0.9013 GB, free: 2.207 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004292/1.948, allocations: 2.823 MB / 0.904 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005386/1.954, allocations: 2.633 MB / 0.9066 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/1.954, allocations: 8 kB / 0.9066 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=361) (initialization): time 0.01723/1.971, allocations: 7.549 MB / 0.914 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.2901/2.261, allocations: 7.508 MB / 0.9213 GB, free: 221.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.434e-05/2.261, allocations: 20.16 kB / 0.9213 GB, free: 221.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05444/2.316, allocations: 12.4 MB / 0.9335 GB, free: 221.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/2.317, allocations: 353.9 kB / 0.9338 GB, free: 221.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01687/2.334, allocations: 8.795 MB / 0.9424 GB, free: 218.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004403/2.339, allocations: 278.6 kB / 0.9426 GB, free: 218.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005772/2.339, allocations: 148.2 kB / 0.9428 GB, free: 218.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/2.339, allocations: 3.938 kB / 0.9428 GB, free: 218.5 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01307/2.353, allocations: 7.122 MB / 0.9497 GB, free: 215.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.32e-05/2.353, allocations: 20 kB / 0.9498 GB, free: 215.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02465/2.377, allocations: 8.023 MB / 0.9576 GB, free: 208 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001863/2.379, allocations: 394.5 kB / 0.958 GB, free: 207.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01481/2.394, allocations: 8.297 MB / 0.9661 GB, free: 199.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003988/2.398, allocations: 271.9 kB / 0.9663 GB, free: 199.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006033/2.399, allocations: 139.9 kB / 0.9665 GB, free: 199 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * 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 initialization (171): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {16 79,19 78} Notification: Performance of prepare postOptimizeDAE: time 0.001632/2.4, allocations: 0.7807 MB / 0.9672 GB, free: 198.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005905/2.401, allocations: 249.7 kB / 0.9675 GB, free: 198.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01392/2.415, allocations: 7.964 MB / 0.9753 GB, free: 190.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.57e-05/2.415, allocations: 30.75 kB / 0.9753 GB, free: 190.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/2.415, allocations: 0 / 0.9753 GB, free: 190.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01154/2.426, allocations: 6.998 MB / 0.9821 GB, free: 183.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02266/2.449, allocations: 13.97 MB / 0.9958 GB, free: 169.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/2.449, allocations: 0 / 0.9958 GB, free: 169.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008603/2.45, allocations: 192.4 kB / 0.9959 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0426/2.493, allocations: 12.01 MB / 1.008 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000648/2.493, allocations: 87.94 kB / 1.008 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/2.507, allocations: 8.505 MB / 1.016 GB, free: 148.3 MB / 0.5606 GB Error: Jacobian StateSetJac9 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1898/2.697, allocations: 57.17 MB / 1.072 GB, free: 90.91 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01875/2.716, allocations: 10.74 MB / 1.082 GB, free: 80.06 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002333/2.718, allocations: 0.8362 MB / 1.083 GB, free: 79.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006916/2.719, allocations: 48 kB / 1.083 GB, free: 79.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002988/2.722, allocations: 260.2 kB / 1.083 GB, free: 78.91 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004294/2.722, allocations: 206 kB / 1.084 GB, free: 78.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002833/2.723, allocations: 115.9 kB / 1.084 GB, free: 78.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001559/2.724, allocations: 1.229 MB / 1.085 GB, free: 77.34 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.81e-07/2.724, allocations: 0 / 1.085 GB, free: 77.34 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008635/2.733, allocations: 2.904 MB / 1.088 GB, free: 74.67 MB / 0.5606 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 (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 78,19 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.02635/2.759, allocations: 13.52 MB / 1.101 GB, free: 61.31 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02483/2.784, allocations: 9.254 MB / 1.11 GB, free: 52.03 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/2.784, allocations: 0 / 1.11 GB, free: 52.03 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008908/2.793, allocations: 3.267 MB / 1.113 GB, free: 48.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004879/2.798, allocations: 0.9251 MB / 1.114 GB, free: 47.84 MB / 0.5606 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]