Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_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_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 112.2 kB / 16.42 MB, free: 6.453 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.001155/0.001155, allocations: 185.7 kB / 17.35 MB, free: 5.734 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.415/1.415, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0945/0.0945, allocations: 22.33 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.91 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08786, allocations: 54.95 MB / 492.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004599/0.09249, allocations: 4.237 MB / 496.9 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.09458, allocations: 1.333 MB / 498.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.09485, allocations: 4 kB / 498.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.09505, allocations: 87.06 kB / 498.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004708/0.09553, allocations: 233.9 kB / 498.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.0961, allocations: 311.5 kB / 498.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009775/0.09709, allocations: 1.158 MB / 0.4883 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000663/0.09776, allocations: 0.5593 MB / 0.4889 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005124/0.09828, allocations: 466.8 kB / 0.4893 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006416/0.09893, allocations: 0.5061 MB / 0.4898 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001591/0.0991, allocations: 115.9 kB / 0.4899 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.09928, allocations: 108 kB / 0.49 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001886/0.09948, allocations: 231.4 kB / 0.4902 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004718/0.09996, allocations: 482 kB / 0.4907 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00094/0.1009, allocations: 1.105 MB / 0.4918 GB, free: 9.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1009, allocations: 4 kB / 0.4918 GB, free: 9.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1009, allocations: 0 / 0.4918 GB, free: 9.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.517e-05/0.101, allocations: 0 / 0.4918 GB, free: 9.809 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002281/0.1032, allocations: 1.088 MB / 0.4928 GB, free: 8.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.1033, allocations: 12.03 kB / 0.4929 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.1034, allocations: 80.42 kB / 0.4929 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.1037, allocations: 267.8 kB / 0.4932 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.703e-05/0.1037, allocations: 70.12 kB / 0.4933 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.1039, allocations: 84 kB / 0.4933 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.1052, allocations: 0.7999 MB / 0.4941 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.1052, allocations: 4 kB / 0.4941 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.849e-05/0.1053, allocations: 36 kB / 0.4942 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.1053, allocations: 20 kB / 0.4942 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.1067, allocations: 0.8277 MB / 0.495 GB, free: 6.438 MB / 382.1 MB Warning: Alias set with conflicting start values * Candidate: V.T(start = V.Tstart = 291.15, confidence number = 2) * Candidate: V.air.T(start = 288.15, confidence number = 8) * Candidate: V.heatPort.T(start = 288.15, confidence number = 8) => Select value from V.T(start = V.Tstart = 291.15) for variable: V.T Warning: Alias set with conflicting start values * Candidate: U1.T(start = U1.Tstart = 293.15, confidence number = 2) * Candidate: U1.air.T(start = 288.15, confidence number = 8) => Select value from U1.T(start = U1.Tstart = 293.15) for variable: U1.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004087/0.1108, allocations: 2.604 MB / 0.4975 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00209/0.1129, allocations: 1.007 MB / 0.4985 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006593/0.1136, allocations: 419.7 kB / 0.4989 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-05/0.1137, allocations: 16.97 kB / 0.4989 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.1137, allocations: 47.56 kB / 0.499 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004591/0.1142, allocations: 127.4 kB / 0.4991 GB, free: 2.074 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 4.759e-06/0.1142, allocations: 3.938 kB / 0.4991 GB, free: 2.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.1797/0.2939, allocations: 3.537 MB / 0.5026 GB, free: 21.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/0.294, allocations: 64.81 kB / 0.5026 GB, free: 21.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.2942, allocations: 225.1 kB / 0.5028 GB, free: 21.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.099e-05/0.2942, allocations: 42.52 kB / 0.5029 GB, free: 21.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.091e-05/0.2943, allocations: 241.5 kB / 0.5031 GB, free: 21.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.2945, allocations: 445.2 kB / 0.5035 GB, free: 21.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.2948, allocations: 173.7 kB / 0.5037 GB, free: 21.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.612e-05/0.2948, allocations: 365.1 kB / 0.504 GB, free: 20.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.2954, allocations: 359.4 kB / 0.5044 GB, free: 20.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.296, allocations: 459.2 kB / 0.5048 GB, free: 20.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01811/0.3141, allocations: 3.473 MB / 0.5082 GB, free: 20.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3141, allocations: 3.781 kB / 0.5082 GB, free: 20.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002353/0.3165, allocations: 1.211 MB / 0.5094 GB, free: 20.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3165, allocations: 12 kB / 0.5094 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.3165, allocations: 1.984 kB / 0.5094 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009959/0.3175, allocations: 207.2 kB / 0.5096 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005947/0.3235, allocations: 0.8146 MB / 0.5104 GB, free: 20.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008291/0.3318, allocations: 14.95 MB / 0.525 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006686/0.3325, allocations: 31.8 kB / 0.525 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.924e-05/0.3325, allocations: 39.06 kB / 0.5251 GB, free: 6.309 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real V.p:VARIABLE(min = 0.0 start = V.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = 0.0 start = V.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (AHUon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,5,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003743/0.3329, allocations: 237.8 kB / 0.5253 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.333, allocations: 55.39 kB / 0.5254 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00314/0.3362, allocations: 1.479 MB / 0.5268 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.3362, allocations: 10.59 kB / 0.5268 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3362, allocations: 4 kB / 0.5268 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.81e-05/0.3363, allocations: 131 kB / 0.5269 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.562e-05/0.3364, allocations: 22.03 kB / 0.527 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005465/0.337, allocations: 28.31 kB / 0.527 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.3372, allocations: 88.33 kB / 0.5271 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007823/0.345, allocations: 1.966 MB / 0.529 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002259/0.3473, allocations: 1.719 MB / 0.5307 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006637/0.3479, allocations: 488.4 kB / 0.5311 GB, free: 4.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001313/0.3481, allocations: 166.8 kB / 0.5313 GB, free: 4.59 MB / 382.1 MB Notification: Performance of Backend: time 4.01e-07/0.3481, allocations: 0 / 0.5313 GB, free: 4.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006692/0.3548, allocations: 1.753 MB / 0.533 GB, free: 3.781 MB / 382.1 MB Notification: Performance of SimCode: time 0.001962/0.3568, allocations: 2.009 MB / 0.535 GB, free: 2.449 MB / 382.1 MB Notification: Performance of Templates: time 0.01742/0.3742, allocations: 12.64 MB / 0.5473 GB, free: 10.77 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1)