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.001143/0.001143, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001181/0.001181, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2019/0.2019, allocations: 44.19 MB / 336.8 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 67.88 kB / 470.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3368, allocations: 60.81 MB / 0.5184 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1036/0.4404, allocations: 90.15 MB / 0.6065 GB, free: 1.723 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03471/0.4752, allocations: 21.32 MB / 0.6273 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003247/0.4785, allocations: 87.5 kB / 0.6274 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003062/0.4816, allocations: 0.9356 MB / 0.6283 GB, free: 11.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.4919, allocations: 3.725 MB / 0.6319 GB, free: 7.582 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01463/0.5066, allocations: 5.665 MB / 0.6375 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.009611/0.5162, allocations: 6.894 MB / 0.6442 GB, free: 11 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00341/0.5197, allocations: 1.813 MB / 0.646 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4943/1.014, allocations: 74.89 MB / 0.7191 GB, free: 72.99 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.05954/1.074, allocations: 31.91 MB / 0.7503 GB, free: 63.4 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0008778/1.075, allocations: 245.1 kB / 0.7505 GB, free: 63.4 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01149/1.086, allocations: 6.092 MB / 0.7565 GB, free: 62.41 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00162/1.088, allocations: 1.072 MB / 0.7575 GB, free: 62.41 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002476/1.09, allocations: 1.49 MB / 0.759 GB, free: 62.36 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008496/1.099, allocations: 5.499 MB / 0.7643 GB, free: 61.89 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/1.099, allocations: 3.344 kB / 0.7643 GB, free: 61.89 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.185e-06/1.099, allocations: 0 / 0.7643 GB, free: 61.89 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001294/1.099, allocations: 4 kB / 0.7643 GB, free: 61.89 MB / 0.5606 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.009266/1.108, allocations: 3.478 MB / 0.7677 GB, free: 60.13 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/1.108, allocations: 9.375 kB / 0.7677 GB, free: 60.13 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004572/1.109, allocations: 347.5 kB / 0.7681 GB, free: 60.02 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008758/1.11, allocations: 313.1 kB / 0.7684 GB, free: 59.87 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002915/1.113, allocations: 1.664 MB / 0.77 GB, free: 59.05 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/1.113, allocations: 225.1 kB / 0.7702 GB, free: 58.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003005/1.113, allocations: 186.1 kB / 0.7704 GB, free: 58.98 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004407/1.117, allocations: 3.287 MB / 0.7736 GB, free: 56.6 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.692e-05/1.117, allocations: 3.188 kB / 0.7736 GB, free: 56.6 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002361/1.118, allocations: 82.86 kB / 0.7737 GB, free: 56.58 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000268/1.118, allocations: 261.1 kB / 0.7739 GB, free: 56.36 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004754/1.123, allocations: 3.094 MB / 0.7769 GB, free: 54.3 MB / 0.5606 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.01723/1.14, allocations: 13.84 MB / 0.7905 GB, free: 42.11 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003696/1.144, allocations: 2.2 MB / 0.7926 GB, free: 40.73 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/1.145, allocations: 1.186 MB / 0.7938 GB, free: 39.98 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007579/1.153, allocations: 5.623 MB / 0.7993 GB, free: 34.91 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/1.153, allocations: 48.75 kB / 0.7993 GB, free: 34.87 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000774/1.154, allocations: 159 kB / 0.7995 GB, free: 34.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 7.554e-06/1.154, allocations: 4 kB / 0.7995 GB, free: 34.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.5081/1.662, allocations: 56.27 MB / 0.8544 GB, free: 11.31 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.1496/1.812, allocations: 46.42 MB / 0.8997 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/1.815, allocations: 1.862 MB / 0.9016 GB, free: 10.61 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0006364/1.816, allocations: 65.7 kB / 0.9016 GB, free: 10.54 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000842/1.817, allocations: 1.09 MB / 0.9027 GB, free: 9.438 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001119/1.818, allocations: 0.8716 MB / 0.9035 GB, free: 8.574 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/1.819, allocations: 0.5682 MB / 0.9041 GB, free: 8 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/1.819, allocations: 305.1 kB / 0.9044 GB, free: 7.699 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004377/1.824, allocations: 2.18 MB / 0.9065 GB, free: 5.512 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004941/1.829, allocations: 2.819 MB / 0.9093 GB, free: 2.441 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01168/1.841, allocations: 5.465 MB / 0.9146 GB, free: 12.76 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.782e-05/1.841, allocations: 4 kB / 0.9146 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.0171/1.858, allocations: 7.496 MB / 0.9219 GB, free: 5.312 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.398e-05/1.858, allocations: 15.94 kB / 0.9219 GB, free: 5.297 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-05/1.858, allocations: 24.2 kB / 0.922 GB, free: 5.273 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0493/1.907, allocations: 12.26 MB / 0.9339 GB, free: 9.031 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/1.909, allocations: 351 kB / 0.9343 GB, free: 8.711 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01972/1.929, allocations: 8.639 MB / 0.9427 GB, free: 40 kB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/1.933, allocations: 198.6 kB / 0.9429 GB, free: 15.85 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007784/1.933, allocations: 151.9 kB / 0.943 GB, free: 15.7 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006068/1.94, allocations: 2.686 MB / 0.9457 GB, free: 13.01 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0051/1.945, allocations: 2.754 MB / 0.9484 GB, free: 9.996 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01189/1.957, allocations: 5.336 MB / 0.9536 GB, free: 4.441 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.514e-05/1.957, allocations: 8 kB / 0.9536 GB, free: 4.434 MB / 0.6856 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01823/1.975, allocations: 7.23 MB / 0.9606 GB, free: 13.26 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/1.975, allocations: 12 kB / 0.9606 GB, free: 13.25 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.841e-05/1.975, allocations: 20 kB / 0.9607 GB, free: 13.23 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02753/2.003, allocations: 7.744 MB / 0.9682 GB, free: 5.484 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001987/2.005, allocations: 385.1 kB / 0.9686 GB, free: 5.133 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2752/2.28, allocations: 8.159 MB / 0.9766 GB, free: 310.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/2.284, allocations: 194.3 kB / 0.9768 GB, free: 310.5 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007773/2.285, allocations: 152.8 kB / 0.9769 GB, free: 310.5 MB / 0.7012 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.001016/2.286, allocations: 333.6 kB / 0.9772 GB, free: 310.3 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008814/2.287, allocations: 248.1 kB / 0.9775 GB, free: 310.3 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0166/2.303, allocations: 7.845 MB / 0.9851 GB, free: 307.9 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.962e-05/2.303, allocations: 34.56 kB / 0.9851 GB, free: 307.9 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/2.303, allocations: 4.562 kB / 0.9851 GB, free: 307.9 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01439/2.318, allocations: 6.915 MB / 0.9919 GB, free: 305.3 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02565/2.343, allocations: 13.77 MB / 1.005 GB, free: 299.9 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/2.343, allocations: 3.094 kB / 1.005 GB, free: 299.9 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009081/2.344, allocations: 190 kB / 1.006 GB, free: 299.9 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04226/2.387, allocations: 11.68 MB / 1.017 GB, free: 293.4 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006566/2.387, allocations: 83.95 kB / 1.017 GB, free: 293.3 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/2.402, allocations: 8.35 MB / 1.025 GB, free: 285 MB / 0.7012 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.1261/2.528, allocations: 43.22 MB / 1.067 GB, free: 241.9 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01828/2.546, allocations: 10.45 MB / 1.078 GB, free: 231.4 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002213/2.549, allocations: 0.8055 MB / 1.078 GB, free: 230.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007676/2.549, allocations: 59.7 kB / 1.078 GB, free: 230.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002906/2.552, allocations: 171.9 kB / 1.079 GB, free: 230.3 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005524/2.553, allocations: 198.1 kB / 1.079 GB, free: 230.1 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000369/2.553, allocations: 104 kB / 1.079 GB, free: 230 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001741/2.555, allocations: 1.277 MB / 1.08 GB, free: 228.7 MB / 0.7012 GB Notification: Performance of sort global known variables: time 3.1e-07/2.555, allocations: 4 kB / 1.08 GB, free: 228.7 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.009092/2.564, allocations: 2.898 MB / 1.083 GB, free: 226 MB / 0.7012 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.02815/2.592, allocations: 13 MB / 1.096 GB, free: 213 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.02529/2.618, allocations: 9.213 MB / 1.105 GB, free: 203.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/2.618, allocations: 1.875 kB / 1.105 GB, free: 203.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.009254/2.627, allocations: 3.222 MB / 1.108 GB, free: 200.6 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00564/2.633, allocations: 1.04 MB / 1.109 GB, free: 199.5 MB / 0.7012 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4690:9-4690:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]