Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 114.8 kB / 16.42 MB, free: 6.496 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.001532/0.001532, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.306/1.306, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09271/0.09271, allocations: 22.32 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08599/0.08722, allocations: 54.96 MB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003949/0.0912, allocations: 3.349 MB / 496 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.09264, allocations: 0.9274 MB / 497 MB, free: 456 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.09283, allocations: 7.938 kB / 497 MB, free: 448 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002268/0.09307, allocations: 99.16 kB / 497.1 MB, free: 348 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004019/0.09348, allocations: 270.4 kB / 497.3 MB, free: 76 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00051/0.094, allocations: 191.7 kB / 497.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001/0.09501, allocations: 1.233 MB / 498.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000857/0.09588, allocations: 0.8902 MB / 499.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.09632, allocations: 486.8 kB / 0.4884 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006525/0.09698, allocations: 0.5647 MB / 0.4889 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001683/0.09716, allocations: 132 kB / 0.4891 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.09736, allocations: 132 kB / 0.4892 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003145/0.09768, allocations: 403 kB / 0.4896 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004802/0.09817, allocations: 0.5292 MB / 0.4901 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.09928, allocations: 1.465 MB / 0.4915 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09929, allocations: 4 kB / 0.4915 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.0993, allocations: 0 / 0.4915 GB, free: 10.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.09932, allocations: 0 / 0.4915 GB, free: 10.05 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002467/0.1018, allocations: 1.283 MB / 0.4928 GB, free: 8.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1018, allocations: 8.031 kB / 0.4928 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.102, allocations: 91.84 kB / 0.4929 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008479/0.1029, allocations: 0.5621 MB / 0.4934 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.454e-05/0.103, allocations: 84.27 kB / 0.4935 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.1031, allocations: 76.28 kB / 0.4936 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.1046, allocations: 0.9328 MB / 0.4945 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.1046, allocations: 0 / 0.4945 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.092e-05/0.1047, allocations: 36 kB / 0.4945 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.1048, allocations: 16 kB / 0.4945 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.106, allocations: 0.8081 MB / 0.4953 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00552/0.1116, allocations: 3.943 MB / 0.4992 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00261/0.1142, allocations: 1.025 MB / 0.5002 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005846/0.1148, allocations: 414.4 kB / 0.5006 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.043e-05/0.1148, allocations: 8.562 kB / 0.5006 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.1149, allocations: 39.12 kB / 0.5006 GB, free: 348 kB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 1.833e-06/0.1149, allocations: 0 / 0.5006 GB, free: 348 kB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.178/0.2928, allocations: 2.361 MB / 0.5029 GB, free: 21.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.2929, allocations: 60.94 kB / 0.503 GB, free: 21.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004296/0.2933, allocations: 420.1 kB / 0.5034 GB, free: 20.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/0.2934, allocations: 35.86 kB / 0.5034 GB, free: 20.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.2935, allocations: 321.5 kB / 0.5037 GB, free: 20.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.2937, allocations: 234.6 kB / 0.5039 GB, free: 20.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.2939, allocations: 124.5 kB / 0.5041 GB, free: 20.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.776e-05/0.294, allocations: 369.8 kB / 0.5044 GB, free: 20.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/0.2946, allocations: 451.7 kB / 0.5048 GB, free: 20.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006272/0.2952, allocations: 0.4908 MB / 0.5053 GB, free: 20.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006803/0.302, allocations: 2.354 MB / 0.5076 GB, free: 20.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3021, allocations: 0.5625 kB / 0.5076 GB, free: 20.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002241/0.3043, allocations: 1.343 MB / 0.5089 GB, free: 20.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.3043, allocations: 5.281 kB / 0.5089 GB, free: 20.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3044, allocations: 2.875 kB / 0.5089 GB, free: 20.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.3054, allocations: 343.8 kB / 0.5093 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008765/0.3063, allocations: 192.4 kB / 0.5095 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00757/0.3139, allocations: 15.15 MB / 0.5242 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/0.3144, allocations: 70.53 kB / 0.5243 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/0.3145, allocations: 25.5 kB / 0.5243 GB, free: 6.246 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004087/0.3149, allocations: 287.4 kB / 0.5246 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.315, allocations: 56.25 kB / 0.5247 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001979/0.317, allocations: 1.138 MB / 0.5258 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.317, allocations: 4.516 kB / 0.5258 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.317, allocations: 1.531 kB / 0.5258 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.959e-05/0.3171, allocations: 136.9 kB / 0.5259 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3172, allocations: 30.55 kB / 0.5259 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000402/0.3176, allocations: 29.08 kB / 0.526 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3178, allocations: 52.84 kB / 0.526 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004302/0.3221, allocations: 1.711 MB / 0.5277 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002182/0.3243, allocations: 1.605 MB / 0.5293 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006277/0.3249, allocations: 492.4 kB / 0.5297 GB, free: 4.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002785/0.3252, allocations: 296.4 kB / 0.53 GB, free: 4.402 MB / 382.1 MB Notification: Performance of Backend: time 3.61e-07/0.3252, allocations: 0 / 0.53 GB, free: 4.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.3272, allocations: 1.811 MB / 0.5318 GB, free: 2.957 MB / 382.1 MB Notification: Performance of SimCode: time 0.00299/0.3302, allocations: 3.1 MB / 0.5348 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of Templates: time 0.01901/0.3492, allocations: 13.38 MB / 0.5479 GB, free: 9.664 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)