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.001476/0.001476, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001798/0.001798, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.322/1.322, allocations: 222.9 MB / 242.3 MB, free: 15.22 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.2039/0.2039, allocations: 44.17 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 63.3 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1229, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3001/0.4231, allocations: 90.14 MB / 0.5464 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02956/0.4527, allocations: 21.31 MB / 0.5672 GB, free: 60 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003302/0.456, allocations: 90.12 kB / 0.5673 GB, free: 24 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002512/0.4586, allocations: 0.9328 MB / 0.5682 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.4686, allocations: 3.728 MB / 0.5718 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01298/0.4816, allocations: 5.662 MB / 0.5774 GB, free: 6.238 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008639/0.4903, allocations: 6.905 MB / 0.5841 GB, free: 15.32 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003322/0.4936, allocations: 1.817 MB / 0.5859 GB, free: 13.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1707/0.6644, allocations: 74.82 MB / 0.6589 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07226/0.7367, allocations: 31.91 MB / 0.6901 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.7379, allocations: 244 kB / 0.6903 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01512/0.7531, allocations: 6.085 MB / 0.6963 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002295/0.7554, allocations: 1.075 MB / 0.6973 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.004533/0.76, allocations: 1.485 MB / 0.6988 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.772, allocations: 5.439 MB / 0.7041 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.7721, allocations: 4 kB / 0.7041 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.973e-06/0.7721, allocations: 0 / 0.7041 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001596/0.7722, allocations: 0 / 0.7041 GB, free: 3.133 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.2633/1.036, allocations: 3.48 MB / 0.7075 GB, free: 205.7 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/1.036, allocations: 10.59 kB / 0.7075 GB, free: 205.7 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001805/1.037, allocations: 342.1 kB / 0.7078 GB, free: 205.6 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003371/1.041, allocations: 312.1 kB / 0.7081 GB, free: 205.5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006038/1.047, allocations: 1.568 MB / 0.7097 GB, free: 204.8 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004581/1.047, allocations: 224 kB / 0.7099 GB, free: 204.7 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/1.049, allocations: 186.7 kB / 0.71 GB, free: 204.7 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007661/1.056, allocations: 3.291 MB / 0.7133 GB, free: 203.4 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.927e-05/1.056, allocations: 9.891 kB / 0.7133 GB, free: 203.3 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002447/1.057, allocations: 84.89 kB / 0.7133 GB, free: 203.3 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000341/1.057, allocations: 255 kB / 0.7136 GB, free: 203.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005387/1.062, allocations: 3.095 MB / 0.7166 GB, free: 202.2 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.01816/1.081, allocations: 13.89 MB / 0.7302 GB, free: 191.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004125/1.085, allocations: 2.203 MB / 0.7323 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/1.086, allocations: 1.177 MB / 0.7335 GB, free: 190.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006739/1.093, allocations: 5.617 MB / 0.739 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/1.093, allocations: 55.75 kB / 0.739 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006223/1.094, allocations: 162.6 kB / 0.7392 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 3.096e-06/1.094, allocations: 0 / 0.7392 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.4967/1.59, allocations: 56.32 MB / 0.7942 GB, free: 130.3 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.1257/1.716, allocations: 46.45 MB / 0.8395 GB, free: 83.35 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002336/1.719, allocations: 1.87 MB / 0.8414 GB, free: 81.44 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000724/1.719, allocations: 69.7 kB / 0.8414 GB, free: 81.36 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006188/1.72, allocations: 1.091 MB / 0.8425 GB, free: 80.27 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008058/1.721, allocations: 0.8651 MB / 0.8433 GB, free: 79.41 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/1.722, allocations: 0.5682 MB / 0.8439 GB, free: 78.84 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.442e-05/1.722, allocations: 305.1 kB / 0.8442 GB, free: 78.54 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003505/1.725, allocations: 2.188 MB / 0.8463 GB, free: 76.34 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003811/1.729, allocations: 2.81 MB / 0.8491 GB, free: 73.27 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009334/1.738, allocations: 5.461 MB / 0.8544 GB, free: 67.51 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/1.739, allocations: 4 kB / 0.8544 GB, free: 67.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01316/1.752, allocations: 7.494 MB / 0.8617 GB, free: 59.95 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/1.752, allocations: 15.44 kB / 0.8617 GB, free: 59.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.913e-05/1.752, allocations: 20.11 kB / 0.8618 GB, free: 59.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04266/1.794, allocations: 12.29 MB / 0.8738 GB, free: 47.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/1.796, allocations: 347.4 kB / 0.8741 GB, free: 47.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/1.812, allocations: 8.639 MB / 0.8825 GB, free: 38.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003849/1.815, allocations: 199.8 kB / 0.8827 GB, free: 38.42 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000481/1.816, allocations: 147.9 kB / 0.8829 GB, free: 38.27 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004296/1.82, allocations: 2.676 MB / 0.8855 GB, free: 35.59 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003729/1.824, allocations: 2.763 MB / 0.8882 GB, free: 32.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009434/1.833, allocations: 5.328 MB / 0.8934 GB, free: 26.94 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.838e-05/1.834, allocations: 11.94 kB / 0.8934 GB, free: 26.93 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01322/1.847, allocations: 7.235 MB / 0.9004 GB, free: 19.64 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/1.847, allocations: 16 kB / 0.9005 GB, free: 19.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.37e-05/1.847, allocations: 16 kB / 0.9005 GB, free: 19.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02399/1.871, allocations: 7.754 MB / 0.9081 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002222/1.873, allocations: 391.3 kB / 0.9084 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01495/1.888, allocations: 8.173 MB / 0.9164 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003794/1.892, allocations: 195.8 kB / 0.9166 GB, free: 3.035 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005302/1.893, allocations: 147.9 kB / 0.9167 GB, free: 2.891 MB / 0.5294 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.0008516/1.893, allocations: 339.7 kB / 0.9171 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007499/1.894, allocations: 245 kB / 0.9173 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2948/2.189, allocations: 7.849 MB / 0.925 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.838e-05/2.189, allocations: 36.86 kB / 0.925 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/2.189, allocations: 3.719 kB / 0.925 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.016/2.205, allocations: 6.91 MB / 0.9317 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02697/2.232, allocations: 13.78 MB / 0.9452 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/2.232, allocations: 0 / 0.9452 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008908/2.233, allocations: 188.6 kB / 0.9454 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04341/2.277, allocations: 11.7 MB / 0.9568 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009407/2.278, allocations: 83.95 kB / 0.9569 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/2.292, allocations: 8.353 MB / 0.9651 GB, free: 170 MB / 0.5294 GB Warning: There are tearing variables with annotation attribute '__OpenModelica_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.1197/2.411, allocations: 43.27 MB / 1.007 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01835/2.43, allocations: 10.44 MB / 1.018 GB, free: 116.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/2.432, allocations: 0.8056 MB / 1.018 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/2.432, allocations: 52 kB / 1.018 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/2.435, allocations: 175.8 kB / 1.019 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004356/2.435, allocations: 202.1 kB / 1.019 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002743/2.435, allocations: 108 kB / 1.019 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00145/2.437, allocations: 1.273 MB / 1.02 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/2.437, allocations: 0 / 1.02 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007227/2.444, allocations: 2.895 MB / 1.023 GB, free: 111.2 MB / 0.5294 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.02499/2.469, allocations: 13.01 MB / 1.036 GB, free: 98.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02682/2.496, allocations: 10.31 MB / 1.046 GB, free: 88.01 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/2.496, allocations: 384 / 1.046 GB, free: 88.01 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009146/2.505, allocations: 3.222 MB / 1.049 GB, free: 84.78 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005455/2.511, allocations: 1.046 MB / 1.05 GB, free: 83.76 MB / 0.5294 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]