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.001801/0.001801, allocations: 106.8 kB / 17.33 MB, free: 5.996 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.002105/0.002105, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.346/1.346, allocations: 222.9 MB / 241.9 MB, free: 15.42 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.2056/0.2056, allocations: 44.18 MB / 336.2 MB, free: 2.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.97 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09853, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3032/0.4018, allocations: 93.22 MB / 0.5489 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03105/0.4329, allocations: 21.77 MB / 0.5701 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003955/0.4369, allocations: 115.1 kB / 0.5702 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002485/0.4394, allocations: 0.8355 MB / 0.5711 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009438/0.4489, allocations: 3.493 MB / 0.5745 GB, free: 9.152 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01354/0.4624, allocations: 5.216 MB / 0.5796 GB, free: 3.945 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009916/0.4724, allocations: 6.932 MB / 0.5863 GB, free: 13 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003799/0.4762, allocations: 1.818 MB / 0.5881 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1506/0.6269, allocations: 74.38 MB / 0.6607 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06361/0.6905, allocations: 32.11 MB / 0.6921 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001296/0.6918, allocations: 244 kB / 0.6923 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01353/0.7054, allocations: 6.104 MB / 0.6983 GB, free: 9.078 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001855/0.7073, allocations: 1.079 MB / 0.6993 GB, free: 7.996 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002933/0.7102, allocations: 1.485 MB / 0.7008 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.00898/0.7192, allocations: 5.454 MB / 0.7061 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.7193, allocations: 0 / 0.7061 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.714e-06/0.7193, allocations: 0 / 0.7061 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.897e-05/0.7193, allocations: 0 / 0.7061 GB, free: 1.035 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.2203/0.9397, allocations: 3.478 MB / 0.7095 GB, free: 206.7 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.9397, allocations: 10.44 kB / 0.7095 GB, free: 206.7 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007797/0.9405, allocations: 347.9 kB / 0.7099 GB, free: 206.5 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00139/0.9419, allocations: 307.9 kB / 0.7102 GB, free: 206.4 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.9452, allocations: 1.567 MB / 0.7117 GB, free: 205.5 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001961/0.9454, allocations: 212.7 kB / 0.7119 GB, free: 205.4 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003652/0.9458, allocations: 186.8 kB / 0.7121 GB, free: 205.4 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00618/0.9519, allocations: 3.306 MB / 0.7153 GB, free: 204 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.616e-05/0.952, allocations: 7.078 kB / 0.7153 GB, free: 204 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002454/0.9523, allocations: 82.84 kB / 0.7154 GB, free: 204 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000407/0.9527, allocations: 248.4 kB / 0.7156 GB, free: 204 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006089/0.9588, allocations: 3.102 MB / 0.7186 GB, free: 202.9 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.01666/0.9755, allocations: 13.83 MB / 0.7321 GB, free: 192 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003415/0.9789, allocations: 2.207 MB / 0.7343 GB, free: 190.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.9804, allocations: 1.182 MB / 0.7355 GB, free: 190.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008315/0.9887, allocations: 5.608 MB / 0.7409 GB, free: 185.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.873e-05/0.9888, allocations: 69.23 kB / 0.741 GB, free: 185.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001494/0.9903, allocations: 209.2 kB / 0.7412 GB, free: 185.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 1.021e-05/0.9903, allocations: 0 / 0.7412 GB, free: 185.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5279/1.518, allocations: 56.39 MB / 0.7963 GB, free: 129.4 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.1284/1.647, allocations: 46.46 MB / 0.8416 GB, free: 82.47 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/1.649, allocations: 1.862 MB / 0.8435 GB, free: 80.57 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005943/1.649, allocations: 65.7 kB / 0.8435 GB, free: 80.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005203/1.65, allocations: 1.096 MB / 0.8446 GB, free: 79.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006538/1.65, allocations: 0.8733 MB / 0.8454 GB, free: 78.54 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009625/1.651, allocations: 0.5643 MB / 0.846 GB, free: 77.96 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.813e-05/1.651, allocations: 305.1 kB / 0.8463 GB, free: 77.66 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003317/1.655, allocations: 2.184 MB / 0.8484 GB, free: 75.47 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0036/1.658, allocations: 2.829 MB / 0.8512 GB, free: 72.38 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00933/1.668, allocations: 5.472 MB / 0.8565 GB, free: 66.61 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/1.668, allocations: 12.11 kB / 0.8565 GB, free: 66.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01294/1.681, allocations: 7.525 MB / 0.8639 GB, free: 59.02 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/1.681, allocations: 12 kB / 0.8639 GB, free: 59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-05/1.681, allocations: 23.94 kB / 0.8639 GB, free: 58.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04288/1.724, allocations: 12.27 MB / 0.8759 GB, free: 46.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/1.725, allocations: 351.4 kB / 0.8762 GB, free: 46.38 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01529/1.74, allocations: 8.643 MB / 0.8847 GB, free: 37.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00395/1.744, allocations: 255.8 kB / 0.8849 GB, free: 37.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004043/1.745, allocations: 151.9 kB / 0.8851 GB, free: 37.29 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004181/1.749, allocations: 2.688 MB / 0.8877 GB, free: 34.59 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003547/1.753, allocations: 2.771 MB / 0.8904 GB, free: 31.55 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009057/1.762, allocations: 5.343 MB / 0.8956 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.229e-05/1.762, allocations: 7.938 kB / 0.8956 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01312/1.775, allocations: 7.251 MB / 0.9027 GB, free: 18.59 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/1.775, allocations: 20.95 kB / 0.9027 GB, free: 18.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/1.775, allocations: 16 kB / 0.9027 GB, free: 18.56 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02404/1.799, allocations: 7.761 MB / 0.9103 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/1.801, allocations: 399.3 kB / 0.9107 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01483/1.816, allocations: 8.158 MB / 0.9187 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004135/1.82, allocations: 259.8 kB / 0.9189 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003773/1.82, allocations: 147.9 kB / 0.9191 GB, free: 1.781 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.0008865/1.821, allocations: 336.2 kB / 0.9194 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006471/1.822, allocations: 245 kB / 0.9196 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3014/2.123, allocations: 8.076 MB / 0.9275 GB, free: 193.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-05/2.123, allocations: 35.75 kB / 0.9275 GB, free: 193.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/2.124, allocations: 0 / 0.9275 GB, free: 193.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02354/2.147, allocations: 7.091 MB / 0.9345 GB, free: 190.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03024/2.177, allocations: 13.82 MB / 0.948 GB, free: 185.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/2.177, allocations: 3.969 kB / 0.948 GB, free: 185.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/2.178, allocations: 195.8 kB / 0.9481 GB, free: 185.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04269/2.221, allocations: 11.69 MB / 0.9596 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007991/2.222, allocations: 83.95 kB / 0.9596 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01461/2.237, allocations: 8.367 MB / 0.9678 GB, free: 168.4 MB / 0.5294 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.1281/2.365, allocations: 46.16 MB / 1.013 GB, free: 122.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/2.384, allocations: 10.68 MB / 1.023 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/2.386, allocations: 0.8123 MB / 1.024 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000536/2.386, allocations: 48 kB / 1.024 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002742/2.389, allocations: 244.8 kB / 1.024 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000457/2.389, allocations: 202 kB / 1.025 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/2.39, allocations: 112 kB / 1.025 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001359/2.391, allocations: 1.284 MB / 1.026 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/2.391, allocations: 0 / 1.026 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006715/2.398, allocations: 2.896 MB / 1.029 GB, free: 106.5 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 (95): * Single equations (assignments): 89 * 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.02621/2.424, allocations: 13.24 MB / 1.042 GB, free: 93.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02892/2.453, allocations: 10.37 MB / 1.052 GB, free: 82.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/2.453, allocations: 0 / 1.052 GB, free: 82.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008878/2.462, allocations: 3.237 MB / 1.055 GB, free: 79.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004741/2.467, allocations: 1.067 MB / 1.056 GB, free: 78.62 MB / 0.5294 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4638:9-4638:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]