Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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: translateModel(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") translateModel(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001529, allocations: 116.2 kB / 16.42 MB, free: 6.504 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.001695/0.001695, allocations: 186.6 kB / 17.35 MB, free: 5.758 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09353/0.09353, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08941, allocations: 54.96 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Hydraulic_circuit): time 0.004106/0.09354, allocations: 3.421 MB / 496.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.0954, allocations: 1.044 MB / 497.1 MB, free: 284 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000235/0.09565, allocations: 7.938 kB / 497.2 MB, free: 276 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002579/0.09593, allocations: 91.16 kB / 497.2 MB, free: 184 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000476/0.09642, allocations: 250.4 kB / 497.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005743/0.097, allocations: 211.5 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.0981, allocations: 1.201 MB / 498.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000917/0.09903, allocations: 0.8024 MB / 499.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005658/0.09961, allocations: 474.8 kB / 0.4884 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006962/0.1003, allocations: 0.5413 MB / 0.489 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002086/0.1005, allocations: 132 kB / 0.4891 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003025/0.1008, allocations: 164 kB / 0.4892 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003069/0.1012, allocations: 355.1 kB / 0.4896 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005386/0.1017, allocations: 0.498 MB / 0.4901 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.1029, allocations: 1.387 MB / 0.4914 GB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1029, allocations: 4 kB / 0.4914 GB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1029, allocations: 3.938 kB / 0.4914 GB, free: 10.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.277e-05/0.1029, allocations: 0 / 0.4914 GB, free: 10.16 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002849/0.1058, allocations: 1.278 MB / 0.4927 GB, free: 8.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1058, allocations: 12.03 kB / 0.4927 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.106, allocations: 87.91 kB / 0.4928 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008111/0.1068, allocations: 0.5458 MB / 0.4933 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.1069, allocations: 49.69 kB / 0.4934 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.107, allocations: 64.28 kB / 0.4934 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.1086, allocations: 0.8383 MB / 0.4942 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1086, allocations: 0 / 0.4942 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.021e-05/0.1087, allocations: 24 kB / 0.4943 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.1087, allocations: 19.98 kB / 0.4943 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.1102, allocations: 0.7585 MB / 0.495 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004643/0.1149, allocations: 3.218 MB / 0.4982 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.1174, allocations: 1.01 MB / 0.4991 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007831/0.1182, allocations: 446.3 kB / 0.4996 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.714e-05/0.1183, allocations: 12.56 kB / 0.4996 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.1183, allocations: 39.11 kB / 0.4996 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000237/0.1186, allocations: 47.58 kB / 0.4997 GB, free: 1.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=61): time 2.394e-06/0.1186, allocations: 0 / 0.4997 GB, free: 1.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=61): time 0.1845/0.303, allocations: 1.894 MB / 0.5015 GB, free: 22.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.057e-05/0.3031, allocations: 61.28 kB / 0.5016 GB, free: 22.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00052/0.3036, allocations: 447 kB / 0.502 GB, free: 22.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.3038, allocations: 36.3 kB / 0.502 GB, free: 22.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.3039, allocations: 309.4 kB / 0.5023 GB, free: 22.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.3041, allocations: 236.9 kB / 0.5026 GB, free: 22.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002581/0.3044, allocations: 135.3 kB / 0.5027 GB, free: 22.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.3045, allocations: 374.3 kB / 0.503 GB, free: 22.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007991/0.3053, allocations: 455.3 kB / 0.5035 GB, free: 22.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008123/0.3061, allocations: 0.5337 MB / 0.504 GB, free: 22.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009777/0.3159, allocations: 2.724 MB / 0.5067 GB, free: 22.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.3159, allocations: 0 / 0.5067 GB, free: 22.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002498/0.3184, allocations: 1.296 MB / 0.5079 GB, free: 21.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.3185, allocations: 10.38 kB / 0.5079 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3185, allocations: 7.438 kB / 0.5079 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007409/0.3192, allocations: 206 kB / 0.5081 GB, free: 21.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.3209, allocations: 305.9 kB / 0.5084 GB, free: 21.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004581/0.3255, allocations: 8.487 MB / 0.5167 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006627/0.3262, allocations: 49.31 kB / 0.5168 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.385e-05/0.3262, allocations: 25.16 kB / 0.5168 GB, free: 14.34 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: Vessel.lfrac:VARIABLE(start = Vessel.lfracstart fixed = true ) type: Real tube.fluidStream.w:VARIABLE(unit = "kg/s" fixed = true ) type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/Initialization.mo:1212:5-1212:82:writable] Error: Internal error Initialization.preBalanceInitialSystem2 failed because variable $DER.tube.fluidStream.w:VARIABLE(unit = "kg/s" ) type: Real does not appear in any equation in the lambda 0 initial system and is not fixable. Error: No system for the symbolic initialization was generated Error: Internal error SimCode DAEmode: The model AES.Coursework.ThermSys_component_models.Hydraulic_circuit could not be translated